﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Model;
using BLL;
using System.Data;
using DBUtility;

namespace IYASAKAReport
{
    public class AJReport : VehicleBase
    {
        public AJReport(RESULT_VEHICLE_INFO result_vehicle_info, bool bSingle)
            : base(result_vehicle_info, bSingle)
        {
            Vehicle_Info = result_vehicle_info;
            bShowAllJCLSH = false;
            bShowWKCCAndZBZL = false;
            bTestRG = GetIsTestRG();
            IsGB7258 = true;
        }

        /// <summary>
        /// 结果详细信息
        /// </summary>
        public RESULT_VEHICLE_INFO Vehicle_Info { get; private set; }

        /// <summary>
        /// 仪器统计不合格项目
        /// </summary>
        private Dictionary<string, Tuple<string, string, string, string, string>> dicYQFailItems = new Dictionary<string, Tuple<string, string, string, string, string>>();

        /// <summary>
        /// 安检仪器报告单的Remark,用于记录
        /// </summary>
        private string YQRemark { get; set; }

        /// <summary>
        /// 是否进行了人工检验
        /// </summary>
        public bool bTestRG { get; private set; }

        /// <summary>
        /// 是否显示外廓尺寸
        /// </summary>
        public bool bShowWKCCAndZBZL { get; set; }

        /// <summary>
        /// 是否执行最新的7258-2017标准
        /// </summary>
        public bool IsGB7258 { get; set; }

        #region 报告单
        /// <summary>
        /// 得到安检报告单基本信息Table
        /// </summary>
        /// <returns></returns>
        public DataTable GetDataTableReport_Base(DataTable dtBase)
        {
            DateTime d;
            DataRow drBase = dtBase.NewRow();
            drBase["AJLSH"] = Vehicle_Info.AJLSH;
            drBase["JCLSH"] = JCLSH;
            drBase["HPHM"] = Vehicle_Info.HPHM.Contains("试") ? "" : Vehicle_Info.HPHM;
            drBase["CLZL"] = Vehicle_Info.CLZL;
            drBase["SYR"] = Vehicle_Info.SYR;
            drBase["CLZL"] = Vehicle_Info.CLZL;
            drBase["PP"] = Vehicle_Info.PP;
            drBase["XH"] = Vehicle_Info.XH;
            //drBase["SYR"] = Vehicle_Info.SYR;
            drBase["SYXZ"] = Vehicle_Info.SYXZ;
            drBase["CCDJRQ"] = Convert.ToDateTime(Vehicle_Info.CCDJRQ).ToString("yyyy-MM-dd");
            if (DateTime.TryParse(Vehicle_Info.CCRQ, out d))
            {
                drBase["CCRQ"] = Convert.ToDateTime(Vehicle_Info.CCRQ).ToString("yyyy-MM-dd");
            }
            else
            {
                drBase["CCRQ"] = string.Empty;
            }

            drBase["CLXXSJ"] = Convert.ToDateTime(Vehicle_Info.CLXXSJ).ToString("yyyy-MM-dd");
            drBase["JCZDZ"] = StationInfo.STATION_ADDRESS;
            drBase["JCZDH"] = StationInfo.STATION_TEL;
            drBase["VIN"] = Vehicle_Info.VIN;
            drBase["FDJH"] = Vehicle_Info.FDJH;
            drBase["JCZMC"] = StationInfo.STATION_NAME;
            drBase["DWMC"] = StationInfo.STATION_NAME;
            string[] strStartEnd = AJGetStartEndTime(Vehicle_Info);
            drBase["XCJYRQKS"] = strStartEnd[0];
            drBase["XCJYRQJS"] = strStartEnd[1];
            drBase["YJGJBZ"] = GetAJ_GB(Vehicle_Info);
            drBase["JY_Mess"] = "";
            drBase["JYJH"] = "";
            dtBase.Rows.Add(drBase);
            return dtBase;
        }

        /// <summary>
        /// 得到报告单的人工部分
        /// </summary>
        /// <param name="dtRG"></param>
        /// <returns></returns>
        public DataTable GetDataTableReport_RG(DataTable dtRG, out Dictionary<string, Tuple<string, string, string, string>> dicRGInfos)
        {
            DataRow drRG = dtRG.NewRow();
            drRG["JCLSH"] = JCLSH;

            dicRGInfos = new Dictionary<string, Tuple<string, string, string, string>>();
            if (bTestRG)
            {
                RESULT_CHASISS_MANUAL_BLL manual_bll = new RESULT_CHASISS_MANUAL_BLL();
                RESULT_CHASISS_MANUAL M_RESULT_CHASISS_MANUAL = new RESULT_CHASISS_MANUAL();
                RESULT_CHASISS_MANUAL T_RESULT_CHASISS_MANUAL = new RESULT_CHASISS_MANUAL();
                ModelReflection mR = new ModelReflection();

                for (int i = 0; i < lstJCLSH.Count; i++)
                {
                    T_RESULT_CHASISS_MANUAL = manual_bll.GetModel(lstJCLSH[i]);
                    if (i == 0)
                    {
                        M_RESULT_CHASISS_MANUAL = T_RESULT_CHASISS_MANUAL;
                    }

                    mR.AutoMapping(T_RESULT_CHASISS_MANUAL, M_RESULT_CHASISS_MANUAL);

                }

                Tuple<string, string, string, string, string> tpItems = null;
                if (string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.JCLSH) == false)
                {
                    if (!GetJYXM().Contains("DC,") && !IsMTC)
                    {
                        M_RESULT_CHASISS_MANUAL.DTDP_PD = "";
                    }
                    List<string> lstRet = new List<string>();
                    lstRet = GetPDResult(M_RESULT_CHASISS_MANUAL.WYXRD_PD, "车辆唯一性检查");
                    drRG["Item_1_PD"] = lstRet[0];
                    if (string.IsNullOrEmpty(lstRet[1]) == false)
                    {
                        tpItems = new Tuple<string, string, string, string, string>(lstRet[1], "", M_RESULT_CHASISS_MANUAL.WYXRD_MS, "", "");
                        if (dicYQFailItems.ContainsKey("WYXRD_PD") == false)
                        {
                            dicYQFailItems.Add("WYXRD_PD", tpItems);
                        }
                        else
                        {
                            dicYQFailItems["WYXRD_PD"] = tpItems;
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("WYXRD_PD") == true)
                        {
                            dicYQFailItems.Remove("WYXRD_PD");
                        }
                    }

                    lstRet = new List<string>();
                    lstRet = GetPDResult(M_RESULT_CHASISS_MANUAL.CLTZCSJC_PD, "车辆特征参数检查");
                    drRG["Item_2_PD"] = lstRet[0];
                    if (string.IsNullOrEmpty(lstRet[1]) == false)
                    {
                        tpItems = new Tuple<string, string, string, string, string>(lstRet[1], "", M_RESULT_CHASISS_MANUAL.CLTZCSJC_MS, "", "");
                        if (dicYQFailItems.ContainsKey("CLTZCSJC_PD") == false)
                        {
                            dicYQFailItems.Add("CLTZCSJC_PD", tpItems);
                        }
                        else
                        {
                            dicYQFailItems["CLTZCSJC_PD"] = tpItems;
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("CLTZCSJC_PD") == true)
                        {
                            dicYQFailItems.Remove("CLTZCSJC_PD");
                        }
                    }

                    lstRet = new List<string>();
                    lstRet = GetPDResult(M_RESULT_CHASISS_MANUAL.WGJC_PD, "外观检查");
                    drRG["Item_3_PD"] = lstRet[0];
                    if (string.IsNullOrEmpty(lstRet[1]) == false)
                    {
                        tpItems = new Tuple<string, string, string, string, string>(lstRet[1], "", M_RESULT_CHASISS_MANUAL.WGJC_MS, "", "");
                        if (dicYQFailItems.ContainsKey("WGJC_PD") == false)
                        {
                            dicYQFailItems.Add("WGJC_PD", tpItems);
                        }
                        else
                        {
                            dicYQFailItems["WGJC_PD"] = tpItems;
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("WGJC_PD") == true)
                        {
                            dicYQFailItems.Remove("WGJC_PD");
                        }
                    }

                    lstRet = new List<string>();
                    lstRet = GetPDResult(M_RESULT_CHASISS_MANUAL.AQZZJY_PD, "安全装置检查");
                    drRG["Item_4_PD"] = lstRet[0];
                    if (string.IsNullOrEmpty(lstRet[1]) == false)
                    {
                        tpItems = new Tuple<string, string, string, string, string>(lstRet[1], "", M_RESULT_CHASISS_MANUAL.AQZZJY_MS, "", "");
                        if (dicYQFailItems.ContainsKey("AQZZJY_PD") == false)
                        {
                            dicYQFailItems.Add("AQZZJY_PD", tpItems);
                        }
                        else
                        {
                            dicYQFailItems["AQZZJY_PD"] = tpItems;
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("AQZZJY_PD") == true)
                        {
                            dicYQFailItems.Remove("AQZZJY_PD ");
                        }
                    }

                    lstRet = new List<string>();
                    lstRet = GetPDResult(M_RESULT_CHASISS_MANUAL.LWCX_PD, "联网查询");
                    drRG["Item_5_PD"] = lstRet[0];
                    if (string.IsNullOrEmpty(lstRet[1]) == false)
                    {
                        tpItems = new Tuple<string, string, string, string, string>(lstRet[1], "", M_RESULT_CHASISS_MANUAL.LWCX_MS, "", "");
                        if (dicYQFailItems.ContainsKey("LWCX_PD") == false)
                        {
                            dicYQFailItems.Add("LWCX_PD", tpItems);
                        }
                        else
                        {
                            dicYQFailItems["LWCX_PD"] = tpItems;
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("LWCX_PD") == true)
                        {
                            dicYQFailItems.Remove("LWCX_PD ");
                        }
                    }

                    lstRet = new List<string>();
                    lstRet = GetPDResult(M_RESULT_CHASISS_MANUAL.DTDP_PD, "底盘动态检查");
                    drRG["Item_6_PD"] = lstRet[0];
                    if (string.IsNullOrEmpty(lstRet[1]) == false)
                    {
                        tpItems = new Tuple<string, string, string, string, string>(lstRet[1], "", M_RESULT_CHASISS_MANUAL.DTDP_MS, "", "");
                        if (dicYQFailItems.ContainsKey("DTDP_PD") == false)
                        {
                            dicYQFailItems.Add("DTDP_PD", tpItems);
                        }
                        else
                        {
                            dicYQFailItems["DTDP_PD"] = tpItems;
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("DTDP_PD") == true)
                        {
                            dicYQFailItems.Remove("DTDP_PD ");
                        }
                    }

                    lstRet = new List<string>();
                    lstRet = GetPDResult(M_RESULT_CHASISS_MANUAL.DPBJ_PD, "底盘部件检查");
                    drRG["Item_7_PD"] = lstRet[0];
                    if (string.IsNullOrEmpty(lstRet[1]) == false)
                    {
                        tpItems = new Tuple<string, string, string, string, string>(lstRet[1], "", M_RESULT_CHASISS_MANUAL.DPBJ_MS, "", "");
                        if (dicYQFailItems.ContainsKey("DPBJ_PD") == false)
                        {
                            dicYQFailItems.Add("DPBJ_PD", tpItems);
                        }
                        else
                        {
                            dicYQFailItems["DPBJ_PD"] = tpItems;
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("DPBJ_PD") == true)
                        {
                            dicYQFailItems.Remove("DPBJ_PD ");
                        }
                    }

                    if (drRG["Item_1_PD"].ToString() == Nothing)
                    {
                        drRG["Item_1_Mess"] = Nothing;
                    }
                    else
                    {
                        drRG["Item_1_Mess"] = string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.WYXRD_MS.Trim()) ? NothingC : M_RESULT_CHASISS_MANUAL.WYXRD_MS;
                    }

                    if (drRG["Item_2_PD"].ToString() == Nothing)
                    {
                        drRG["Item_2_Mess"] = Nothing;
                    }
                    else
                    {
                        drRG["Item_2_Mess"] = string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.CLTZCSJC_MS.Trim()) ? NothingC : M_RESULT_CHASISS_MANUAL.CLTZCSJC_MS;
                    }

                    if (drRG["Item_3_PD"].ToString() == Nothing)
                    {
                        drRG["Item_3_Mess"] = Nothing;
                    }
                    else
                    {
                        drRG["Item_3_Mess"] = string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.WGJC_MS.Trim()) ? NothingC : M_RESULT_CHASISS_MANUAL.WGJC_MS.Trim();
                    }

                    if (drRG["Item_4_PD"].ToString() == Nothing)
                    {
                        drRG["Item_4_Mess"] = Nothing;
                    }
                    else
                    {
                        drRG["Item_4_Mess"] = string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.AQZZJY_MS.Trim()) ? NothingC : M_RESULT_CHASISS_MANUAL.AQZZJY_MS.Trim();
                    }

                    if (drRG["Item_5_PD"].ToString() == Nothing)
                    {
                        drRG["Item_5_Mess"] = Nothing;
                    }
                    else
                    {
                        drRG["Item_5_Mess"] = string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.LWCX_MS.Trim()) ? NothingC : M_RESULT_CHASISS_MANUAL.LWCX_MS.Trim();
                    }

                    if (drRG["Item_6_PD"].ToString() == Nothing)
                    {
                        drRG["Item_6_Mess"] = Nothing;
                    }
                    else
                    {
                        drRG["Item_6_Mess"] = string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.DTDP_MS.Trim()) ? NothingC : M_RESULT_CHASISS_MANUAL.DTDP_MS.Trim();
                    }

                    if (drRG["Item_7_PD"].ToString() == Nothing)
                    {
                        drRG["Item_7_Mess"] = Nothing;
                    }
                    else
                    {
                        drRG["Item_7_Mess"] = string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.DPBJ_MS.Trim()) ? NothingC : M_RESULT_CHASISS_MANUAL.DPBJ_MS.Trim();
                    }
                }

                dicRGInfos.Add("Item_1_PD", new Tuple<string, string, string, string>("Item_1_PD", "车辆唯一性检查", M_RESULT_CHASISS_MANUAL.WYXRD_PD, drRG["Item_1_Mess"].ToString()));
                dicRGInfos.Add("Item_2_PD", new Tuple<string, string, string, string>("Item_2_PD", "车辆特征参数检查", M_RESULT_CHASISS_MANUAL.CLTZCSJC_PD, drRG["Item_2_Mess"].ToString()));
                dicRGInfos.Add("Item_3_PD", new Tuple<string, string, string, string>("Item_3_PD", "车辆外观检查", M_RESULT_CHASISS_MANUAL.WGJC_PD, drRG["Item_3_Mess"].ToString()));
                dicRGInfos.Add("Item_4_PD", new Tuple<string, string, string, string>("Item_4_PD", "安全装置检查", M_RESULT_CHASISS_MANUAL.AQZZJY_PD, drRG["Item_4_Mess"].ToString()));
                dicRGInfos.Add("Item_5_PD", new Tuple<string, string, string, string>("Item_5_PD", "联网查询车辆事故/违法信息", M_RESULT_CHASISS_MANUAL.LWCX_PD, drRG["Item_5_Mess"].ToString()));
                dicRGInfos.Add("Item_6_PD", new Tuple<string, string, string, string>("Item_6_PD", "底盘动态检验", M_RESULT_CHASISS_MANUAL.DTDP_PD, drRG["Item_6_Mess"].ToString()));
                dicRGInfos.Add("Item_7_PD", new Tuple<string, string, string, string>("Item_7_PD", "车辆底盘检验", M_RESULT_CHASISS_MANUAL.DPBJ_PD, drRG["Item_7_Mess"].ToString()));
            }
            else
            {
                drRG["Item_1_PD"] = Nothing;
                drRG["Item_2_PD"] = Nothing;
                drRG["Item_3_PD"] = Nothing;
                drRG["Item_4_PD"] = Nothing;
                drRG["Item_5_PD"] = Nothing;
                drRG["Item_6_PD"] = Nothing;
                drRG["Item_7_PD"] = Nothing;

                drRG["Item_1_Mess"] = Nothing;
                drRG["Item_2_Mess"] = Nothing;
                drRG["Item_3_Mess"] = Nothing;
                drRG["Item_4_Mess"] = Nothing;
                drRG["Item_5_Mess"] = Nothing;
                drRG["Item_6_Mess"] = Nothing;
                drRG["Item_7_Mess"] = Nothing;

                dicRGInfos.Add("Item_1_PD", new Tuple<string, string, string, string>("Item_1_PD", "车辆唯一性检查", "0", drRG["Item_1_Mess"].ToString()));
                dicRGInfos.Add("Item_2_PD", new Tuple<string, string, string, string>("Item_2_PD", "车辆特征参数检查", "0", drRG["Item_2_Mess"].ToString()));
                dicRGInfos.Add("Item_3_PD", new Tuple<string, string, string, string>("Item_3_PD", "车辆外观检查", "0", drRG["Item_3_Mess"].ToString()));
                dicRGInfos.Add("Item_4_PD", new Tuple<string, string, string, string>("Item_4_PD", "安全装置检查", "0", drRG["Item_4_Mess"].ToString()));
                dicRGInfos.Add("Item_5_PD", new Tuple<string, string, string, string>("Item_5_PD", "联网查询车辆事故/违法信息", "0", drRG["Item_5_Mess"].ToString()));
                dicRGInfos.Add("Item_6_PD", new Tuple<string, string, string, string>("Item_6_PD", "底盘动态检验", "0", drRG["Item_6_Mess"].ToString()));
                dicRGInfos.Add("Item_7_PD", new Tuple<string, string, string, string>("Item_7_PD", "车辆底盘检验", "0", drRG["Item_7_Mess"].ToString()));
            }

            var vRGKeys = dicRGInfos.Keys.ToList();
            int iIndex = 1;
            drRG = SetDataTableDefaultValue(ref dtRG, Empty);
            foreach (var v in vRGKeys)
            {
                if (string.IsNullOrEmpty(dicRGInfos[v].Item3) == false && dicRGInfos[v].Item3 != "0")
                {
                    drRG["XH_" + iIndex.ToString()] = iIndex.ToString();
                    drRG["Item_Name_" + iIndex.ToString()] = dicRGInfos[v].Item2;
                    drRG["Item_" + iIndex.ToString() + "_PD"] = GetPDResult(dicRGInfos[v].Item3, dicRGInfos[v].Item2)[0];
                    drRG["Item_" + iIndex.ToString() + "_Mess"] = dicRGInfos[v].Item4;
                    iIndex++;
                }
            }


            dtRG.Rows.Add(drRG);
            return dtRG;
        }

        /// <summary>
        /// 得到报告单的仪器部分
        /// </summary>
        /// <param name="ds"></param>
        /// <returns></returns>
        public List<DataTable> GetDataTableReport_YQ(DataSet ds, out Dictionary<string, Tuple<string, string, string, string, string, string>> dicYQInfo_18C82,
            out Dictionary<string, Tuple<string, string, string, string, string, string, string>> dicYQInfo_18C62)
        {
            List<DataTable> lstDt = new List<DataTable>();

            //仪器的信息，记录详细项目
            dicYQInfo_18C82 = new Dictionary<string, Tuple<string, string, string, string, string, string>>();
            dicYQInfo_18C62 = new Dictionary<string, Tuple<string, string, string, string, string, string, string>>();

            #region 初始化Datatable
            DataTable dtYQ = ds.Tables["DtYQ"];
            DataTable dtYQ_Item = ds.Tables["DtYQ_Item"];

            DataRow drYQ = dtYQ.NewRow();
            DataRow drYQ_Item = dtYQ_Item.NewRow();

            drYQ["JCLSH"] = JCLSH;
            drYQ_Item["JCLSH"] = JCLSH;
            #endregion

            Dictionary<string, Tuple<string, string, string, string, string>> dicTestItems = new Dictionary<string, Tuple<string, string, string, string, string>>();

            for (int i = 1; i < 30; i++)
            {
                Tuple<string, string, string, string, string> tl = new Tuple<string, string, string, string, string>("", "", "", "", "");
                dicTestItems.Add("key" + i, tl);
            }

            //记录不合格项目
            Tuple<string, string, string, string, string> tpItems = null;
            string strBZ1 = "", strBZ2 = "";
            string strPD1 = "", strPD2 = "";

            #region 刹车部分
            RESULT_BRAKE_BLL brake_bll = new RESULT_BRAKE_BLL();
            RESULT_BRAKE M_RESULT_BRAKE = new RESULT_BRAKE();
            RESULT_BRAKE T_RESULT_BRAKE = new RESULT_BRAKE();
            ModelReflection mR = new ModelReflection();
            DataTable dtBrake = new DataTable();

            brake_bll.GetModelList(ref dtBrake, "JCLSH='" + JCLSH + "'");
            DataRow drBrake = SetDataTableDefaultValue(ref dtBrake, Nothing);

            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_BRAKE = brake_bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_BRAKE = T_RESULT_BRAKE;
                }
                mR.AutoMapping(T_RESULT_BRAKE, M_RESULT_BRAKE);
            }

            if (string.IsNullOrEmpty(M_RESULT_BRAKE.JCLSH) == false)
            {
                #region 一轴
                //一轴空载
                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.YZZDLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.YZZDLV_PD) > 0)
                    {
                        drBrake["YZZDLV"] = M_RESULT_BRAKE.YZZDLV.Trim();
                        drBrake["YZZDLVBZ"] = M_RESULT_BRAKE.YZZDLVBZ.Trim();
                        drBrake["YZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZZDLV_PD.Trim());

                        dicYQInfo_18C82.Add("YZZDLV", new Tuple<string, string, string, string, string, string>
                            ("YZZDLV", "一轴制动力", M_RESULT_BRAKE.YZZDLV.Trim(), M_RESULT_BRAKE.YZZDLVBZ.Trim(), M_RESULT_BRAKE.YZZDLV_PD.Trim(), ""));
                    }
                }

                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.YZBPHLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.YZBPHLV_PD) > 0)
                    {
                        drBrake["YZBPHLV"] = M_RESULT_BRAKE.YZBPHLV.Trim();
                        drBrake["YZBPHLVBZ"] = M_RESULT_BRAKE.YZBPHLVBZ.Trim();
                        drBrake["YZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZBPHLV_PD.Trim());

                        dicYQInfo_18C82.Add("YZBPHLV", new Tuple<string, string, string, string, string, string>
                        ("YZBPHLV", "一轴不平衡率", M_RESULT_BRAKE.YZBPHLV.Trim(), M_RESULT_BRAKE.YZBPHLVBZ.Trim(), M_RESULT_BRAKE.YZBPHLV_PD.Trim(), ""));
                    }
                }

                //一轴加载
                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.YZJZZDLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.YZJZZDLV_PD) > 0)
                    {
                        drBrake["YZJZZDLV"] = M_RESULT_BRAKE.YZJZZDLV.Trim();
                        drBrake["YZJZZDLVBZ"] = M_RESULT_BRAKE.YZJZZDLVBZ.Trim();
                        drBrake["YZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZJZZDLV_PD.Trim());

                        dicYQInfo_18C82.Add("YZJZZDLV", new Tuple<string, string, string, string, string, string>
                        ("YZJZZDLV", "一轴加载制动力", M_RESULT_BRAKE.YZJZZDLV.Trim(), M_RESULT_BRAKE.YZJZZDLVBZ.Trim(), M_RESULT_BRAKE.YZJZZDLV_PD.Trim(), ""));
                    }
                }

                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.YZJZBPHLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.YZJZBPHLV_PD) > 0)
                    {
                        drBrake["YZJZBPHLV"] = M_RESULT_BRAKE.YZJZBPHLV.Trim();
                        drBrake["YZJZBPHLVBZ"] = M_RESULT_BRAKE.YZBPHLVBZ.Trim();
                        drBrake["YZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZJZBPHLV_PD.Trim());

                        dicYQInfo_18C82.Add("YZJZBPHLV", new Tuple<string, string, string, string, string, string>
                        ("YZJZBPHLV", "一轴加载不平衡率", M_RESULT_BRAKE.YZJZBPHLV.Trim(), M_RESULT_BRAKE.YZBPHLVBZ.Trim(), M_RESULT_BRAKE.YZJZBPHLV_PD.Trim(), ""));
                    }
                }
                #endregion

                #region 二轴
                //二轴空载
                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.EZZDLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.EZZDLV_PD) > 0)
                    {
                        drBrake["EZZDLV"] = M_RESULT_BRAKE.EZZDLV.Trim();
                        drBrake["EZZDLVBZ"] = M_RESULT_BRAKE.EZZDLVBZ.Trim();
                        drBrake["EZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZZDLV_PD.Trim());

                        dicYQInfo_18C82.Add("EZZDLV", new Tuple<string, string, string, string, string, string>
                        ("EZZDLV", "二轴制动力", M_RESULT_BRAKE.EZZDLV.Trim(), M_RESULT_BRAKE.EZZDLVBZ.Trim(), M_RESULT_BRAKE.EZZDLV_PD.Trim(), ""));
                    }
                }

                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.EZBPHLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.EZBPHLV_PD) > 0)
                    {
                        drBrake["EZBPHLV"] = M_RESULT_BRAKE.EZBPHLV.Trim();
                        drBrake["EZBPHLVBZ"] = M_RESULT_BRAKE.EZBPHLVBZ.Trim();
                        drBrake["EZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZBPHLV_PD.Trim());

                        dicYQInfo_18C82.Add("EZBPHLV", new Tuple<string, string, string, string, string, string>
                        ("EZBPHLV", "二轴不平衡率", M_RESULT_BRAKE.EZBPHLV.Trim(), M_RESULT_BRAKE.EZBPHLVBZ.Trim(), M_RESULT_BRAKE.EZBPHLV_PD.Trim(), ""));
                    }
                }
                //二轴加载
                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.EZJZZDLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.EZJZZDLV_PD) > 0)
                    {
                        drBrake["EZJZZDLV"] = M_RESULT_BRAKE.EZJZZDLV.Trim();
                        drBrake["EZJZZDLVBZ"] = M_RESULT_BRAKE.EZJZZDLVBZ.Trim();
                        drBrake["EZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZJZZDLV_PD.Trim());

                        dicYQInfo_18C82.Add("EZJZZDLV", new Tuple<string, string, string, string, string, string>
                        ("EZJZZDLV", "二轴加载制动力", M_RESULT_BRAKE.EZJZZDLV.Trim(), M_RESULT_BRAKE.EZJZZDLVBZ.Trim(), M_RESULT_BRAKE.EZJZZDLV_PD.Trim(), ""));
                    }
                }

                if (!string.IsNullOrEmpty((M_RESULT_BRAKE.EZJZBPHLV_PD)))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.EZJZBPHLV_PD) > 0)
                    {
                        drBrake["EZJZBPHLV"] = M_RESULT_BRAKE.EZJZBPHLV.Trim();
                        drBrake["EZJZBPHLVBZ"] = M_RESULT_BRAKE.EZBPHLVBZ.Trim();
                        drBrake["EZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZJZBPHLV_PD.Trim());

                        dicYQInfo_18C82.Add("EZJZBPHLV", new Tuple<string, string, string, string, string, string>
                        ("EZJZBPHLV", "二轴加载不平衡率", M_RESULT_BRAKE.EZJZBPHLV.Trim(), M_RESULT_BRAKE.EZBPHLVBZ.Trim(), M_RESULT_BRAKE.EZJZBPHLV_PD.Trim(), ""));
                    }
                }
                #endregion

                #region 三轴
                if (ZZS > 2)
                {
                    //三轴空载
                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.SZZDLV_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.SZZDLV_PD) > 0)
                        {
                            drBrake["SZZDLV"] = M_RESULT_BRAKE.SZZDLV.Trim();
                            drBrake["SZZDLVBZ"] = M_RESULT_BRAKE.SZZDLVBZ.Trim();
                            drBrake["SZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZZDLV_PD.Trim());

                            dicYQInfo_18C82.Add("SZZDLV", new Tuple<string, string, string, string, string, string>
                            ("SZZDLV", "三轴制动力", M_RESULT_BRAKE.SZZDLV.Trim(), M_RESULT_BRAKE.SZZDLVBZ.Trim(), M_RESULT_BRAKE.SZZDLV_PD.Trim(), ""));
                        }
                    }

                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.SZBPHLV_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.SZBPHLV_PD) > 0)
                        {
                            drBrake["SZBPHLV"] = M_RESULT_BRAKE.SZBPHLV.Trim();
                            drBrake["SZBPHLVBZ"] = M_RESULT_BRAKE.SZBPHLVBZ.Trim();
                            drBrake["SZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZBPHLV_PD.Trim());

                            dicYQInfo_18C82.Add("SZBPHLV", new Tuple<string, string, string, string, string, string>
                            ("SZBPHLV", "三轴不平衡率", M_RESULT_BRAKE.SZBPHLV.Trim(), M_RESULT_BRAKE.SZBPHLVBZ.Trim(), M_RESULT_BRAKE.SZBPHLV_PD.Trim(), ""));
                        }
                    }

                    //三轴加载
                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.SZJZZDLV_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.SZJZZDLV_PD) > 0)
                        {
                            drBrake["SZJZZDLV"] = M_RESULT_BRAKE.SZJZZDLV.Trim();
                            drBrake["SZJZZDLVBZ"] = M_RESULT_BRAKE.SZJZZDLVBZ.Trim();
                            drBrake["SZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZJZZDLV_PD.Trim());

                            dicYQInfo_18C82.Add("SZJZZDLV", new Tuple<string, string, string, string, string, string>
                            ("SZJZZDLV", "三轴加载制动力", M_RESULT_BRAKE.SZJZZDLV.Trim(), M_RESULT_BRAKE.SZJZZDLVBZ.Trim(), M_RESULT_BRAKE.SZJZZDLV_PD.Trim(), ""));
                        }
                    }

                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.SZJZBPHLV_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.SZJZBPHLV_PD) > 0)
                        {
                            drBrake["SZJZBPHLV"] = M_RESULT_BRAKE.SZBPHLV.Trim();
                            drBrake["SZJZBPHLVBZ"] = M_RESULT_BRAKE.SZBPHLVBZ.Trim();
                            drBrake["SZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZJZBPHLV_PD.Trim());

                            dicYQInfo_18C82.Add("SZJZBPHLV", new Tuple<string, string, string, string, string, string>
                            ("SZJZBPHLV", "三轴不平衡率", M_RESULT_BRAKE.SZBPHLV.Trim(), M_RESULT_BRAKE.SZBPHLVBZ.Trim(), M_RESULT_BRAKE.SZJZBPHLV_PD.Trim(), ""));
                        }
                    }
                }
                #endregion

                #region 四轴
                if (ZZS > 3)
                {
                    //四轴空载
                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.SIZZDLV_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.SIZZDLV_PD) > 0)
                        {
                            drBrake["SIZZDLV"] = M_RESULT_BRAKE.SIZZDLV.Trim();
                            drBrake["SIZZDLVBZ"] = M_RESULT_BRAKE.SIZZDLVBZ.Trim();
                            drBrake["SIZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SIZZDLV_PD.Trim());

                            dicYQInfo_18C82.Add("SIZZDLV", new Tuple<string, string, string, string, string, string>
                            ("SIZZDLV", "四轴制动力", M_RESULT_BRAKE.SIZZDLV.Trim(), M_RESULT_BRAKE.SIZZDLVBZ.Trim(), M_RESULT_BRAKE.SIZZDLV_PD.Trim(), ""));
                        }
                    }

                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.SIZBPHLV_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.SIZBPHLV_PD) > 0)
                        {
                            drBrake["SIZBPHLV"] = M_RESULT_BRAKE.SIZBPHLV.Trim();
                            drBrake["SIZBPHLVBZ"] = M_RESULT_BRAKE.SIZBPHLVBZ.Trim();
                            drBrake["SIZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.SIZBPHLV_PD.Trim());

                            dicYQInfo_18C82.Add("SIZBPHLV", new Tuple<string, string, string, string, string, string>
                            ("SIZBPHLV", "四轴不平衡率", M_RESULT_BRAKE.SIZZDLV.Trim(), M_RESULT_BRAKE.SIZZDLVBZ.Trim(), M_RESULT_BRAKE.SIZZDLV_PD.Trim(), ""));
                        }
                    }
                }
                #endregion

                #region 五轴
                if (ZZS > 4)
                {
                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.WZZDZ_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.WZZDZ_PD) > 0)
                        {
                            drBrake["WZZDLV"] = M_RESULT_BRAKE.WZZDLV.Trim();
                            drBrake["WZZDLVBZ"] = M_RESULT_BRAKE.WZZDLVBZ.Trim();
                            drBrake["WZZDZ_PD"] = GetPDResult(M_RESULT_BRAKE.WZZDZ_PD.Trim());

                            dicYQInfo_18C82.Add("WZZDLV", new Tuple<string, string, string, string, string, string>
                            ("WZZDLV", "五轴制动力", M_RESULT_BRAKE.WZZDLV.Trim(), M_RESULT_BRAKE.WZZDLVBZ.Trim(), M_RESULT_BRAKE.WZZDZ_PD.Trim(), ""));
                        }
                    }

                    if (!string.IsNullOrEmpty((M_RESULT_BRAKE.WZBPHLV_PD)))
                    {
                        if (Convert.ToInt32(M_RESULT_BRAKE.WZBPHLV_PD) > 0)
                        {
                            drBrake["WZBPHLV"] = M_RESULT_BRAKE.WZBPHLV.Trim();
                            drBrake["WZBPHLVBZ"] = M_RESULT_BRAKE.WZBPHLVBZ.Trim();
                            drBrake["WZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.WZBPHLV_PD.Trim());

                            dicYQInfo_18C82.Add("WZBPHLV", new Tuple<string, string, string, string, string, string>
                            ("WZBPHLV", "五轴不平衡率", M_RESULT_BRAKE.WZBPHLV.Trim(), M_RESULT_BRAKE.WZBPHLVBZ.Trim(), M_RESULT_BRAKE.WZBPHLV_PD.Trim(), ""));
                        }
                    }
                }
                #endregion

                #region 驻车和整车
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZDLV_PD))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.SZDLV_PD) > 0)
                    {
                        drBrake["ZCSZDLV"] = M_RESULT_BRAKE.ZCSZDLV.Trim();
                        drBrake["SZDLVBZ"] = M_RESULT_BRAKE.SZDLVBZ.Trim();
                        drBrake["SZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZDLV_PD.Trim());

                        dicYQInfo_18C82.Add("ZCSZDLV", new Tuple<string, string, string, string, string, string>
                        ("ZCSZDLV", "驻车制动力", M_RESULT_BRAKE.ZCSZDLV.Trim(), M_RESULT_BRAKE.SZDLVBZ.Trim(), M_RESULT_BRAKE.SZDLV_PD.Trim(), M_RESULT_BRAKE.ZDSZDJCCS.Trim()));
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZCZDLV_PD))
                {
                    if (Convert.ToInt32(M_RESULT_BRAKE.ZCZDLV_PD) > 0)
                    {
                        drBrake["ZCZDLV"] = M_RESULT_BRAKE.ZCZDLV.Trim();
                        drBrake["ZCZDLVBZ"] = M_RESULT_BRAKE.ZCZDLVBZ.Trim();
                        drBrake["ZCZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.ZCZDLV_PD.Trim());

                        dicYQInfo_18C82.Add("ZCZDLV", new Tuple<string, string, string, string, string, string>
                        ("ZCZDLV", "整车制动力", M_RESULT_BRAKE.ZCZDLV.Trim(), M_RESULT_BRAKE.ZCZDLVBZ.Trim(), M_RESULT_BRAKE.ZCZDLV_PD.Trim(), M_RESULT_BRAKE.ZDZCJCCS.Trim()));
                    }
                }
                #endregion

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.QCLCZC_PD) && Convert.ToInt32(M_RESULT_BRAKE.QCLCZC_PD) > 0)
                {
                    drBrake["QCLCZCBZ"] = M_RESULT_BRAKE.QCLCZCBZ.Trim();
                    drBrake["QCLCZCZDLV"] = M_RESULT_BRAKE.QCLCZCZDLV.Trim();
                    drBrake["QCLCZC_PD"] = GetPDResult(M_RESULT_BRAKE.QCLCZC_PD);
                }

                #region 制动报告单
                //一轴空载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.YZZDLV) == false && M_RESULT_BRAKE.YZZDLV != Nothing)
                    || (string.IsNullOrEmpty(M_RESULT_BRAKE.YZBPHLV) == false && M_RESULT_BRAKE.YZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["YZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["YZZDLVBZ"].ToString() : drBrake["YZZDLVBZ"].ToString();
                    strBZ2 = drBrake["YZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["YZBPHLVBZ"].ToString() : drBrake["YZBPHLVBZ"].ToString();
                    dicTestItems["key1"] = new Tuple<string, string, string, string, string>("一轴(制动率/不平衡率(%))",
                        drBrake["YZZDLV"] + " / " + drBrake["YZBPHLV"],
                         strBZ1 + " / " + strBZ2,
                        GetAJResult_YQ(drBrake["YZZDLV_PD"].ToString(), drBrake["YZBPHLV_PD"].ToString()), "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.YZZDLV) == false && M_RESULT_BRAKE.YZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("YZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("YZZDLV", "一轴空载制动率", drBrake["YZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.YZZDLV_PD, drBrake["YZZDLV_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.YZBPHLV) == false && M_RESULT_BRAKE.YZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("YZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("YZBPHLV", "一轴空载不平衡率", drBrake["YZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.YZBPHLV_PD, drBrake["YZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["YZZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("一轴空载制动率", drBrake["YZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.YZZZDZDL, M_RESULT_BRAKE.YZYZDZDL);
                        if (!dicYQFailItems.ContainsKey("YZZDLV_PD"))
                        {
                            dicYQFailItems.Add("YZZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("YZZDLV_PD"))
                        {
                            dicYQFailItems.Remove("YZZDLV_PD");
                        }
                    }

                    if (drBrake["YZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("一轴空载不平衡率", drBrake["YZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.YZZZDZDL, M_RESULT_BRAKE.YZYZDZDL);
                        if (!dicYQFailItems.ContainsKey("YZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("YZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("YZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("YZBPHLV_PD");
                        }
                    }
                }

                //一轴加载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.YZJZZDLV) == false && M_RESULT_BRAKE.YZJZZDLV != Nothing)
                    || (string.IsNullOrEmpty(M_RESULT_BRAKE.YZJZBPHLV) == false && M_RESULT_BRAKE.YZJZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["YZJZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["YZJZZDLVBZ"].ToString() : drBrake["YZJZZDLVBZ"].ToString();
                    strBZ2 = drBrake["YZJZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["YZBPHLVBZ"].ToString() : drBrake["YZJZBPHLVBZ"].ToString();

                    dicTestItems["key2"] = new Tuple<string, string, string, string, string>("一轴加载制动率/不平衡率(%)",
                            drBrake["YZJZZDLV"] + " / " + drBrake["YZJZBPHLV"],
                             strBZ1 + " / " + strBZ2,
                            drBrake["YZJZZDLV_PD"] + " / " + drBrake["YZJZBPHLV_PD"], "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.YZJZZDLV) == false && M_RESULT_BRAKE.YZJZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("YZJZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("YZJZZDLV", "一轴加载制动率", drBrake["YZJZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.YZJZZDLV_PD, drBrake["YZJZZDLV_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.YZJZBPHLV) == false && M_RESULT_BRAKE.YZJZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("YZJZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("YZJZBPHLV", "一轴加载不平衡率", drBrake["YZJZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.YZJZBPHLV_PD, drBrake["YZJZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["YZJZZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("一轴加载制动率", drBrake["YZJZZDLV"].ToString(), strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("YZJZZDLV_PD"))
                        {
                            dicYQFailItems.Add("YZJZZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("YZJZZDLV_PD"))
                        {
                            dicYQFailItems.Remove("YZJZZDLV_PD");
                        }
                    }

                    if (drBrake["YZJZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("一轴加载不平衡率", drBrake["YZJZBPHLV"].ToString(), strBZ2, "", "");
                        if (!dicYQFailItems.ContainsKey("YZJZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("YZJZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("YZJZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("YZJZBPHLV_PD");
                        }
                    }
                }

                //二轴空载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.EZZDLV) == false && M_RESULT_BRAKE.EZZDLV != Nothing)
                    || (string.IsNullOrEmpty(M_RESULT_BRAKE.EZBPHLV) == false && M_RESULT_BRAKE.EZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["EZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["EZZDLVBZ"].ToString() : drBrake["EZZDLVBZ"].ToString();
                    strBZ2 = drBrake["EZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["EZBPHLVBZ"].ToString() : drBrake["EZBPHLVBZ"].ToString();
                    dicTestItems["key3"] = new Tuple<string, string, string, string, string>("二轴(制动率/不平衡率(%))",
                        drBrake["EZZDLV"] + " / " + drBrake["EZBPHLV"],
                        strBZ1 + " / " + strBZ2,
                        GetAJResult_YQ(drBrake["EZZDLV_PD"].ToString(), drBrake["EZBPHLV_PD"].ToString()), "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.EZZDLV) == false && M_RESULT_BRAKE.EZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("EZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("EZZDLV", "二轴空载制动率", drBrake["EZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.EZZDLV_PD, drBrake["EZZDLV_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.EZBPHLV) == false && M_RESULT_BRAKE.EZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("EZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("EZBPHLV", "二轴空载不平衡率", drBrake["EZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.EZBPHLV_PD, drBrake["EZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["EZZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("二轴空载制动率", drBrake["EZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.EZZZDZDL, M_RESULT_BRAKE.EZYZDZDL);
                        if (!dicYQFailItems.ContainsKey("EZZDLV_PD"))
                        {
                            dicYQFailItems.Add("EZZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("EZZDLV_PD"))
                        {
                            dicYQFailItems.Remove("EZZDLV_PD");
                        }
                    }

                    if (drBrake["EZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("二轴空载不平衡率", drBrake["EZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.EZZZDCZD, M_RESULT_BRAKE.EZYZDCZD);
                        if (!dicYQFailItems.ContainsKey("EZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("EZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("EZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("EZBPHLV_PD");
                        }
                    }
                }

                //二轴加载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.EZJZZDLV) == false && M_RESULT_BRAKE.EZJZZDLV != Nothing)
                  || (string.IsNullOrEmpty(M_RESULT_BRAKE.EZJZBPHLV) == false && M_RESULT_BRAKE.EZJZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["EZJZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["EZJZZDLVBZ"].ToString() : drBrake["EZJZZDLVBZ"].ToString();
                    strBZ2 = drBrake["EZJZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["EZJZBPHLVBZ"].ToString() : drBrake["EZJZBPHLVBZ"].ToString();
                    dicTestItems["key4"] = new Tuple<string, string, string, string, string>("二轴加载制动率/不平衡率(%)",
                        drBrake["EZJZZDLV"] + " / " + drBrake["EZJZBPHLV"],
                        strBZ1 + " / " + strBZ2,
                        drBrake["EZJZZDLV_PD"] + " / " + drBrake["EZJZBPHLV_PD"], "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.EZJZZDLV) == false && M_RESULT_BRAKE.EZJZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("EZJZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("EZJZZDLV", "二轴加载制动率", drBrake["EZJZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.EZJZZDLV_PD, drBrake["EZJZZDLV_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.EZJZBPHLV) == false && M_RESULT_BRAKE.EZJZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("EZJZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("EZJZBPHLV", "二轴加载不平衡率", drBrake["EZJZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.EZJZBPHLV_PD, drBrake["EZJZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["EZJZZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("二轴加载制动率", drBrake["EZJZZDLV"].ToString(), strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("EZJZZDLV_PD"))
                        {
                            dicYQFailItems.Add("EZJZZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("EZJZZDLV_PD"))
                        {
                            dicYQFailItems.Remove("EZJZZDLV_PD");
                        }
                    }

                    if (drBrake["EZJZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("二轴加载不平衡率", drBrake["EZJZBPHLV"].ToString(), strBZ2, "", "");
                        if (!dicYQFailItems.ContainsKey("EZJZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("EZJZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("EZJZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("EZJZBPHLV_PD");
                        }
                    }
                }

                //三轴空载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.SZZDLV) == false && M_RESULT_BRAKE.SZZDLV != Nothing)
                    || (string.IsNullOrEmpty(M_RESULT_BRAKE.SZBPHLV) == false && M_RESULT_BRAKE.SZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["SZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["SZZDLVBZ"].ToString() : drBrake["SZZDLVBZ"].ToString();
                    strBZ2 = drBrake["SZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["SZBPHLVBZ"].ToString() : drBrake["SZBPHLVBZ"].ToString();
                    dicTestItems["key5"] = new Tuple<string, string, string, string, string>("三轴(制动率/不平衡率(%))",
                        drBrake["SZZDLV"] + " / " + drBrake["SZBPHLV"],
                        strBZ1 + " / " + strBZ2,
                        GetAJResult_YQ(drBrake["SZZDLV_PD"].ToString(), drBrake["SZBPHLV_PD"].ToString()), "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.SZZDLV) == false && M_RESULT_BRAKE.SZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("SZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("SZZDLV", "三轴空载制动率", drBrake["SZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.SZZDLV_PD, drBrake["SZZDLV_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.SZBPHLV) == false && M_RESULT_BRAKE.SZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("SZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("SZBPHLV", "三轴空载不平衡率", drBrake["SZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.SZBPHLV_PD, drBrake["SZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["SZZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("三轴空载制动率", drBrake["SZZDLV"].ToString(), strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("SZZDLV_PD"))
                        {
                            dicYQFailItems.Add("SZZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("SZZDLV_PD"))
                        {
                            dicYQFailItems.Remove("SZZDLV_PD");
                        }
                    }

                    if (drBrake["SZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("三轴空载不平衡率", drBrake["SZBPHLV"].ToString(), strBZ2, "", "");
                        if (!dicYQFailItems.ContainsKey("SZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("SZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("SZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("SZBPHLV_PD");
                        }
                    }
                }

                //三轴加载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.SZJZZDLV) == false && M_RESULT_BRAKE.SZJZZDLV != Nothing)
                || (string.IsNullOrEmpty(M_RESULT_BRAKE.SZJZBPHLV) == false && M_RESULT_BRAKE.SZJZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["SZJZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["SZJZZDLVBZ"].ToString() : drBrake["SZJZZDLVBZ"].ToString();
                    strBZ2 = drBrake["SZJZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["SZJZBPHLVBZ"].ToString() : drBrake["SZJZBPHLVBZ"].ToString();
                    dicTestItems["key6"] = new Tuple<string, string, string, string, string>("三轴加载制动率/不平衡率(%)",
                       drBrake["SZJZZDLV"] + " / " + drBrake["SZJZBPHLV"],
                       strBZ1 + " / " + strBZ2,
                       drBrake["SZJZZDLV_PD"] + " / " + drBrake["SZJZBPHLV_PD"], "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.SZJZZDLV) == false && M_RESULT_BRAKE.SZJZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("SZJZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("SZJZZDLV", "三轴加载制动率", drBrake["SZJZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.SZJZZDLV_PD, drBrake["SZJZZDLV_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.SZJZBPHLV) == false && M_RESULT_BRAKE.SZJZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("SZJZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("SZJZBPHLV", "三轴加载不平衡率", drBrake["SZJZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.SZJZBPHLV_PD, drBrake["SZJZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["SZJZZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("三轴加载制动率", drBrake["SZJZZDLV"].ToString(), strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("SZJZZDLV_PD"))
                        {
                            dicYQFailItems.Add("SZJZZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("SZJZZDLV_PD"))
                        {
                            dicYQFailItems.Remove("SZJZZDLV_PD");
                        }
                    }

                    if (drBrake["SZJZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("三轴加载不平衡率", drBrake["SZJZBPHLV"].ToString(), strBZ2, "", "");
                        if (!dicYQFailItems.ContainsKey("SZJZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("SZJZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("SZJZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("SZJZBPHLV_PD");
                        }
                    }
                }

                //四轴空载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.SIZZDLV) == false && M_RESULT_BRAKE.SIZZDLV != Nothing)
                    || (string.IsNullOrEmpty(M_RESULT_BRAKE.SIZBPHLV) == false && M_RESULT_BRAKE.SIZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["SIZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["SIZZDLVBZ"].ToString() : drBrake["SIZZDLVBZ"].ToString();
                    strBZ2 = drBrake["SIZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["SIZBPHLVBZ"].ToString() : drBrake["SIZBPHLVBZ"].ToString();
                    dicTestItems["key7"] = new Tuple<string, string, string, string, string>("四轴(制动率/不平衡率(%))",
                       drBrake["SIZZDLV"] + " / " + drBrake["SIZBPHLV"],
                       strBZ1 + " / " + strBZ2,
                       GetAJResult_YQ(drBrake["SIZZDLV_PD"].ToString(), drBrake["SIZBPHLV_PD"].ToString()), "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.SIZZDLV) == false && M_RESULT_BRAKE.SIZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("SIZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("SIZZDLV", "四轴空载制动率", drBrake["SIZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.SIZZDLV_PD, drBrake["SIZZDLV_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.SIZBPHLV) == false && M_RESULT_BRAKE.SIZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("SIZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("SIZBPHLV", "四轴空载不平衡率", drBrake["SIZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.SIZBPHLV_PD, drBrake["SIZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["SIZZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("四轴空载制动率", drBrake["SIZZDLV"].ToString(), strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("SIZZDLV_PD"))
                        {
                            dicYQFailItems.Add("SIZZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("SIZZDLV_PD"))
                        {
                            dicYQFailItems.Remove("SIZZDLV_PD");
                        }
                    }

                    if (drBrake["SIZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("四轴空载不平衡率", drBrake["SIZBPHLV"].ToString(), strBZ2, "", "");
                        if (!dicYQFailItems.ContainsKey("SIZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("SIZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("SIZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("SIZBPHLV_PD");
                        }
                    }
                }

                //五轴空载
                if ((string.IsNullOrEmpty(M_RESULT_BRAKE.WZZDLV) == false && M_RESULT_BRAKE.WZZDLV != Nothing)
                    || (string.IsNullOrEmpty(M_RESULT_BRAKE.WZBPHLV) == false && M_RESULT_BRAKE.WZBPHLV != Nothing))
                {
                    strBZ1 = drBrake["WZZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["WZZDLVBZ"].ToString() : drBrake["WZZDLVBZ"].ToString();
                    strBZ2 = drBrake["WZBPHLVBZ"].ToString() != Nothing ? LessThan + drBrake["WZBPHLVBZ"].ToString() : drBrake["WZBPHLVBZ"].ToString();
                    dicTestItems["key8"] = new Tuple<string, string, string, string, string>("五轴(制动率/不平衡率(%))",
                        drBrake["WZZDLV"] + " / " + drBrake["WZBPHLV"],
                        strBZ1 + " / " + strBZ2,
                        GetAJResult_YQ(drBrake["WZZDZ_PD"].ToString(), drBrake["WZBPHLV_PD"].ToString()), "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.WZZDLV) == false && M_RESULT_BRAKE.WZZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("WZZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("WZZDLV", "五轴空载制动率", drBrake["WZZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.WZZDZ_PD, drBrake["WZZDZ_PD"].ToString(), ""));
                    }

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.WZBPHLV) == false && M_RESULT_BRAKE.WZBPHLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("WZBPHLV", new Tuple<string, string, string, string, string, string, string>
                        ("WZBPHLV", "五轴空载不平衡率", drBrake["WZBPHLV"].ToString(), strBZ2, M_RESULT_BRAKE.WZBPHLV_PD, drBrake["WZBPHLV_PD"].ToString(), ""));
                    }

                    if (drBrake["WZZDZ_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("五轴空载制动率", drBrake["WZZDLV"].ToString(), strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("WZZDZ_PD"))
                        {
                            dicYQFailItems.Add("WZZDZ_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("WZZDZ_PD"))
                        {
                            dicYQFailItems.Remove("WZZDZ_PD");
                        }
                    }

                    if (drBrake["WZBPHLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("五轴空载不平衡率", drBrake["WZBPHLV"].ToString(), strBZ2, "", "");
                        if (!dicYQFailItems.ContainsKey("WZBPHLV_PD"))
                        {
                            dicYQFailItems.Add("WZBPHLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("WZBPHLV_PD"))
                        {
                            dicYQFailItems.Remove("WZBPHLV_PD");
                        }
                    }
                }

                //驻车制动
                if (string.IsNullOrEmpty(M_RESULT_BRAKE.ZCSZDLV) == false && M_RESULT_BRAKE.ZCSZDLV != Nothing)
                {
                    strBZ1 = drBrake["SZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["SZDLVBZ"].ToString() : drBrake["SZDLVBZ"].ToString();
                    dicTestItems["key9"] = new Tuple<string, string, string, string, string>("驻车制动率(%)",
                        drBrake["ZCSZDLV"].ToString(),
                       strBZ1,
                        drBrake["SZDLV_PD"].ToString(), "");

                    //联网18C62
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.ZCSZDLV) == false && M_RESULT_BRAKE.ZCSZDLV != Nothing)
                    {
                        dicYQInfo_18C62.Add("ZCSZDLV", new Tuple<string, string, string, string, string, string, string>
                        ("ZCSZDLV", "驻车制动率", drBrake["ZCSZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.SZDLV_PD, drBrake["SZDLV_PD"].ToString(), ""));
                    }

                    if (drBrake["SZDLV_PD"].ToString() == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("驻车制动率", drBrake["ZCSZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.ZZSZDL, M_RESULT_BRAKE.ZYSZDL);
                        if (!dicYQFailItems.ContainsKey("SZDLV_PD"))
                        {
                            dicYQFailItems.Add("SZDLV_PD", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("SZDLV_PD"))
                        {
                            dicYQFailItems.Remove("SZDLV_PD");
                        }
                    }
                }

                if (IsMTC == false)
                {
                    //整车制动
                    if ((string.IsNullOrEmpty(M_RESULT_BRAKE.ZCZDLV) == false && M_RESULT_BRAKE.ZCZDLV != Nothing))
                    {
                        strBZ2 = drBrake["ZCZDLVBZ"].ToString() != Nothing ? MoreThan + drBrake["ZCZDLVBZ"].ToString() : drBrake["ZCZDLVBZ"].ToString();
                        dicTestItems["key10"] = new Tuple<string, string, string, string, string>("整车制动率(%)",
                            drBrake["ZCZDLV"].ToString(),
                            strBZ2,
                            drBrake["ZCZDLV_PD"].ToString(), "");

                        //联网18C62
                        if (string.IsNullOrEmpty(M_RESULT_BRAKE.ZCZDLV) == false && M_RESULT_BRAKE.ZCZDLV != Nothing)
                        {
                            dicYQInfo_18C62.Add("ZCZDLV", new Tuple<string, string, string, string, string, string, string>
                            ("ZCZDLV", "整车制动率", drBrake["ZCZDLV"].ToString(), strBZ2, M_RESULT_BRAKE.ZCZDLV_PD, drBrake["ZCZDLV_PD"].ToString(), ""));
                        }

                        if (drBrake["ZCZDLV_PD"].ToString() == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("整车制动率", drBrake["ZCZDLV"].ToString(), strBZ2, "", "");
                            if (!dicYQFailItems.ContainsKey("ZCZDLV_PD"))
                            {
                                dicYQFailItems.Add("ZCZDLV_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZCZDLV_PD"))
                            {
                                dicYQFailItems.Remove("ZCZDLV_PD");
                            }
                        }
                    }
                }

                if (IsQCLC && IsGC)
                {
                    if (string.IsNullOrEmpty(M_RESULT_BRAKE.QCLCZCZDLV) == false && M_RESULT_BRAKE.QCLCZCZDLV != Nothing)
                    {
                        strBZ1 = drBrake["QCLCZCBZ"].ToString() != Nothing ? MoreThan + drBrake["QCLCZCBZ"].ToString() : drBrake["ZCZDLVBZ"].ToString();
                        dicTestItems["key25"] = new Tuple<string, string, string, string, string>("汽车列车空载制动率",
                            drBrake["QCLCZCZDLV"].ToString(),
                           strBZ1, drBrake["QCLCZC_PD"].ToString(), "");

                        //联网18C62
                        if (string.IsNullOrEmpty(M_RESULT_BRAKE.QCLCZCZDLV) == false && M_RESULT_BRAKE.QCLCZCZDLV != Nothing)
                        {
                            dicYQInfo_18C62.Add("QCLCZCZDLV", new Tuple<string, string, string, string, string, string, string>
                            ("QCLCZCZDLV", "汽车列车空载制动率", drBrake["QCLCZCZDLV"].ToString(), strBZ1, M_RESULT_BRAKE.QCLCZC_PD, drBrake["QCLCZC_PD"].ToString(), ""));
                        }

                        if (drBrake["QCLCZC_PD"].ToString() == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("汽车列车空载制动率", drBrake["QCLCZCZDLV"].ToString(), strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("QCLCZC_PD"))
                            {
                                dicYQFailItems.Add("QCLCZC_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("QCLCZC_PD"))
                            {
                                dicYQFailItems.Remove("QCLCZC_PD");
                            }
                        }
                    }
                }
                #endregion
            }
            #endregion

            #region 灯光部分
            RESULT_LAMP_BLL lamp_Bll = new RESULT_LAMP_BLL();
            RESULT_LAMP M_RESULT_LAMP = new RESULT_LAMP();
            RESULT_LAMP T_RESULT_LAMP = new RESULT_LAMP();

            DataTable dtLamp = new DataTable();
            lamp_Bll.GetModelList(ref dtLamp, "JCLSH='" + JCLSH + "'");
            DataRow drLamp = SetDataTableDefaultValue(ref dtLamp, "");

            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_LAMP = lamp_Bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_LAMP = T_RESULT_LAMP;
                }
                mR.AutoMapping(T_RESULT_LAMP, M_RESULT_LAMP);
            }

            if (string.IsNullOrEmpty(M_RESULT_LAMP.JCLSH) == false)
            {
                //左外/内远光发光强度
                if (M_RESULT_LAMP.ZWDYGGQ != Nothing || M_RESULT_LAMP.ZNDYGGQ != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.ZWDYGGQ_PD) > 0 || Convert.ToInt32(M_RESULT_LAMP.ZNDYGGQ_PD) > 0)
                    {
                        string strPD_F = GetPDResult(M_RESULT_LAMP.ZWDYGGQ_PD);
                        string strPD_B = GetPDResult(M_RESULT_LAMP.ZNDYGGQ_PD);
                        
                        string strBZ_F = "";
                        string strBZ_B = "";
                        if (IsMTC)
                        {
                            strBZ_F = M_RESULT_LAMP.DGGQXZ;
                            strBZ_B = "-";
                        }
                        else
                        {
                            strBZ_F = M_RESULT_LAMP.ZWDYGGQ != Nothing ? !string.IsNullOrEmpty(M_RESULT_LAMP.ZWDDGGQXZ) ? MoreThan + M_RESULT_LAMP.ZWDDGGQXZ : Nothing : Nothing;
                            strBZ_B = M_RESULT_LAMP.ZNDYGGQ != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGGQ) ? !string.IsNullOrEmpty(M_RESULT_LAMP.ZNDDGGQXZ) ? MoreThan + M_RESULT_LAMP.ZNDDGGQXZ : Nothing : Nothing;
                        }
                        dicTestItems["key11"] = new Tuple<string, string, string, string, string>("前照灯左外/内灯远光发光强度(cd)",
                         M_RESULT_LAMP.ZWDYGGQ + " / " + (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGGQ) ? M_RESULT_LAMP.ZNDYGGQ : Nothing),
                         strBZ_F + " / " + strBZ_B,
                         GetAJResult_YQ(strPD_F, strPD_B), "");

                        //联网18C62
                        if (M_RESULT_LAMP.ZWDYGGQ != Nothing && M_RESULT_LAMP.ZWDYGGQ_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGGQ_PD))
                        {
                            dicYQInfo_18C62.Add("ZWDYGGQ", new Tuple<string, string, string, string, string, string, string>
                            ("ZWDYGGQ", "前照灯左外灯远光发光强度(cd)", M_RESULT_LAMP.ZWDYGGQ.Trim(), strBZ_F, M_RESULT_LAMP.ZWDYGGQ_PD.Trim(), strPD_F, ""));
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.ZNDYGGQ != Nothing && M_RESULT_LAMP.ZNDYGGQ_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGGQ_PD))
                        {
                            dicYQInfo_18C62.Add("ZNDYGGQ", new Tuple<string, string, string, string, string, string, string>
                            ("ZNDYGGQ", "前照灯左内灯远光发光强度(cd)", M_RESULT_LAMP.ZNDYGGQ, strBZ_B, M_RESULT_LAMP.ZNDYGGQ_PD, strPD_B, ""));
                        }

                        if (strPD_F == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯左外远光发光强度", M_RESULT_LAMP.ZWDYGGQ, strBZ_F, "", "");
                            if (!dicYQFailItems.ContainsKey("ZWDYGGQ_PD"))
                            {
                                dicYQFailItems.Add("ZWDYGGQ_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZWDYGGQ_PD"))
                            {
                                dicYQFailItems.Remove("ZWDYGGQ_PD");
                            }
                        }

                        if (strPD_B == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯左内远光发光强度", M_RESULT_LAMP.ZNDYGGQ, strBZ_B, "", "");
                            if (!dicYQFailItems.ContainsKey("ZNDYGGQ_PD"))
                            {
                                dicYQFailItems.Add("ZNDYGGQ_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZNDYGGQ_PD"))
                            {
                                dicYQFailItems.Remove("ZNDYGGQ_PD");
                            }
                        }
                    }
                }

                //右外/内远光发光强度
                if (M_RESULT_LAMP.YWDYGGQ != Nothing || M_RESULT_LAMP.YNDYGGQ != Nothing)
                {
                    if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGGQ_PD) || !string.IsNullOrEmpty(M_RESULT_LAMP.YNDYGGQ_PD))
                    {
                        string strPD_F = GetPDResult(M_RESULT_LAMP.YWDYGGQ_PD);
                        string strPD_B = GetPDResult(M_RESULT_LAMP.YNDYGGQ_PD);
                        string strBZ = MoreThan + M_RESULT_LAMP.DGGQXZ;
                        string strBZ_F = M_RESULT_LAMP.YWDYGGQ != Nothing ? !string.IsNullOrEmpty(M_RESULT_LAMP.YWDDGGQXZ) ? MoreThan + M_RESULT_LAMP.YWDDGGQXZ : Nothing : Nothing;
                        string strBZ_B = M_RESULT_LAMP.YNDYGGQ != Nothing ? !string.IsNullOrEmpty(M_RESULT_LAMP.YNDDGGQXZ) ? MoreThan + M_RESULT_LAMP.YNDDGGQXZ : Nothing : Nothing;
                        dicTestItems["key12"] = new Tuple<string, string, string, string, string>("前照灯右外/内灯远光发光强度(cd)",
                            M_RESULT_LAMP.YWDYGGQ + " / " + M_RESULT_LAMP.YNDYGGQ,
                            strBZ_F + " / "+strBZ_B,
                            GetAJResult_YQ(strPD_F, strPD_B), "");

                        //联网18C62
                        if (M_RESULT_LAMP.YWDYGGQ != Nothing && M_RESULT_LAMP.YWDYGGQ_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGGQ_PD))
                        {
                            dicYQInfo_18C62.Add("YWDYGGQ", new Tuple<string, string, string, string, string, string, string>
                            ("YWDYGGQ", "前照灯右外灯远光发光强度(cd)", M_RESULT_LAMP.YWDYGGQ.Trim(), strBZ_F, M_RESULT_LAMP.YWDYGGQ_PD.Trim(), strPD_F, ""));
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.YNDYGGQ != Nothing && M_RESULT_LAMP.YNDYGGQ_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.YNDYGGQ_PD))
                        {
                            dicYQInfo_18C62.Add("YNDYGGQ", new Tuple<string, string, string, string, string, string, string>
                            ("YNDYGGQ", "前照灯右内灯远光发光强度(cd)", M_RESULT_LAMP.YNDYGGQ, strBZ_B, M_RESULT_LAMP.YNDYGGQ_PD, strPD_B, ""));
                        }

                        if (strPD_F == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯右外远光发光强度", M_RESULT_LAMP.YWDYGGQ, strBZ_F, "", "");
                            if (!dicYQFailItems.ContainsKey("YWDYGGQ_PD"))
                            {
                                dicYQFailItems.Add("YWDYGGQ_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("YWDYGGQ_PD"))
                            {
                                dicYQFailItems.Remove("YWDYGGQ_PD");
                            }
                        }

                        if (strPD_B == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯右内远光发光强度", M_RESULT_LAMP.YNDYGGQ, strBZ_B, "", "");
                            if (!dicYQFailItems.ContainsKey("YNDYGGQ_PD"))
                            {
                                dicYQFailItems.Add("YNDYGGQ_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("YNDYGGQ_PD"))
                            {
                                dicYQFailItems.Remove("YNDYGGQ_PD");
                            }
                        }
                    }
                }

                //左外灯远近光光强垂直偏移
                if (M_RESULT_LAMP.ZWDYGCZPY != Nothing || M_RESULT_LAMP.ZWDJGCZPY != Nothing)
                {
                    if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGCZPY_PD) || !string.IsNullOrEmpty(M_RESULT_LAMP.ZWDJGCZPY_PD))
                    {
                        string strPD_F = GetPDResult(M_RESULT_LAMP.ZWDYGCZPY_PD); //Front
                        string strPD_B = GetPDResult(M_RESULT_LAMP.ZWDJGCZPY_PD); //Behind
                        string strRemark = "";
                        string strRemark_F = "";
                        string strRemark_B = "";

                        strBZ1 = M_RESULT_LAMP.ZWDYGCZPYL != Nothing ? M_RESULT_LAMP.ZWDYGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.ZWDYGCZPYXZSX.StrToIntVal() : Nothing;
                        strBZ2 = M_RESULT_LAMP.ZWDJGCZPYL != Nothing ? M_RESULT_LAMP.ZWDJGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.ZWDJGCZPYXZSX.StrToIntVal() : Nothing;
                        if (IsGB7258)
                        {
                            strPD_F = AJGetLampPDResult(M_RESULT_LAMP.ZWDYGCZPYL, M_RESULT_LAMP.ZWDYGCZPY_PD);
                            strPD_B = AJGetLampPDResult(M_RESULT_LAMP.ZWDJGCZPYL, M_RESULT_LAMP.ZWDJGCZPY_PD);

                            strRemark = "灯高(左外远/近)" + M_RESULT_LAMP.ZWDYGDG + "/" + M_RESULT_LAMP.ZWDJGDG;
                            strRemark_F = "灯高(左外远)" + M_RESULT_LAMP.ZWDYGDG;
                            strRemark_B = "灯高(左外近)" + M_RESULT_LAMP.ZWDJGDG;

                            dicTestItems["key13"] = new Tuple<string, string, string, string, string>("前照灯左外灯远/近光垂直偏移(mm/10m)",
                                M_RESULT_LAMP.ZWDYGCZPYL + " / " + M_RESULT_LAMP.ZWDJGCZPYL,
                               strBZ1 + " / " + strBZ2,
                                GetAJResult_YQ(strPD_F, strPD_B), strRemark);
                        }
                        else
                        {
                            dicTestItems["key13"] = new Tuple<string, string, string, string, string>("前照灯左外灯远/近光垂直偏移(H)",
                                M_RESULT_LAMP.ZWDYGCZPY + " / " + M_RESULT_LAMP.ZWDJGCZPY,
                               strBZ1 + " / " + strBZ2,
                                GetAJResult_YQ(strPD_F, strPD_B), "");
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.ZWDYGCZPYL != Nothing && M_RESULT_LAMP.ZWDYGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("ZWDYGCZPY", new Tuple<string, string, string, string, string, string, string>
("ZWDYGCZPY", "前照灯左外灯远光垂直偏移(mm/10m)", M_RESULT_LAMP.ZWDYGCZPYL.Trim(), strBZ1, M_RESULT_LAMP.ZWDYGCZPY_PD.Trim(), strPD_F, strRemark_F));
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.ZWDJGCZPYL != Nothing && M_RESULT_LAMP.ZWDJGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.ZWDJGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("ZWDJGCZPY", new Tuple<string, string, string, string, string, string, string>
                            ("ZWDJGCZPY", "前照灯左外灯近光垂直偏移(mm/10m)", M_RESULT_LAMP.ZWDJGCZPYL, strBZ2, M_RESULT_LAMP.ZWDJGCZPY_PD, strPD_B, strRemark_B));
                        }

                        if (strPD_F == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯左外灯远光垂直偏移", M_RESULT_LAMP.ZWDYGCZPYL, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("ZWDYGCZPY_PD"))
                            {
                                dicYQFailItems.Add("ZWDYGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZWDYGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("ZWDYGCZPY_PD");
                            }
                        }

                        if (strPD_B == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯左外灯近光垂直偏移", M_RESULT_LAMP.ZWDJGCZPYL, strBZ2, "", "");
                            if (!dicYQFailItems.ContainsKey("ZWDJGCZPY_PD"))
                            {
                                dicYQFailItems.Add("ZWDJGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZWDJGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("ZWDJGCZPY_PD");
                            }
                        }
                    }
                }

                //左内灯远近光光强垂直偏移
                if (M_RESULT_LAMP.ZNDYGCZPY != Nothing || M_RESULT_LAMP.ZNDJGCZPY != Nothing)
                {
                    if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGCZPY_PD) || !string.IsNullOrEmpty(M_RESULT_LAMP.ZNDJGCZPY_PD))
                    {
                        string strPD_F = GetPDResult(M_RESULT_LAMP.ZNDYGCZPY_PD);
                        string strPD_B = GetPDResult(M_RESULT_LAMP.ZNDJGCZPY_PD);
                        string strRemark = "";
                        string strRemark_F = "";
                        string strRemark_B = "";

                        strBZ1 = M_RESULT_LAMP.ZNDYGCZPYL != Nothing ? M_RESULT_LAMP.ZNDYGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.ZNDYGCZPYXZSX.StrToIntVal() : Nothing;
                        strBZ2 = M_RESULT_LAMP.ZNDJGCZPYL != Nothing ? M_RESULT_LAMP.ZNDJGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.ZNDJGCZPYXZSX.StrToIntVal() : Nothing;

                        if (IsGB7258)
                        {
                            strPD_F = AJGetLampPDResult(M_RESULT_LAMP.ZNDYGCZPYL, M_RESULT_LAMP.ZNDYGCZPY_PD);
                            strPD_B = AJGetLampPDResult(M_RESULT_LAMP.ZNDJGCZPYL, M_RESULT_LAMP.ZNDJGCZPY_PD);

                            strRemark = "灯高(左内远/近)" + M_RESULT_LAMP.ZNDYGDG + "/" + M_RESULT_LAMP.ZNDJGDG;
                            strRemark_F = "灯高(左内远)" + M_RESULT_LAMP.ZNDYGDG;
                            strRemark_B = "灯高(左内近)" + M_RESULT_LAMP.ZNDJGDG;


                            dicTestItems["key14"] = new Tuple<string, string, string, string, string>("前照灯左内灯远/近光垂直偏移(mm/10m)",
                                M_RESULT_LAMP.ZNDYGCZPYL + " / " + M_RESULT_LAMP.ZNDJGCZPYL,
                                strBZ1 + " / " + strBZ2,
                                GetAJResult_YQ(strPD_F, strPD_B), strRemark);
                        }
                        else
                        {
                            dicTestItems["key14"] = new Tuple<string, string, string, string, string>("前照灯左内灯远/近光垂直偏移(H)",
                               M_RESULT_LAMP.ZNDYGCZPY + " / " + M_RESULT_LAMP.ZNDJGCZPY,
                               strBZ1 + " / " + strBZ2,
                               GetAJResult_YQ(strPD_F, strPD_B), "");
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.ZNDYGCZPYL != Nothing && M_RESULT_LAMP.ZNDYGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("ZNDYGCZPY", new Tuple<string, string, string, string, string, string, string>
("ZNDYGCZPY", "前照灯左内灯远光垂直偏移(mm/10m)", M_RESULT_LAMP.ZNDYGCZPYL.Trim(), strBZ1, M_RESULT_LAMP.ZNDYGCZPY_PD.Trim(), strPD_F, strRemark_F));
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.ZNDJGCZPYL != Nothing && M_RESULT_LAMP.ZNDJGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.ZNDJGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("ZNDJGCZPY", new Tuple<string, string, string, string, string, string, string>
                                                  ("ZNDJGCZPY", "前照灯左内灯近光垂直偏移(mm/10m)", M_RESULT_LAMP.ZNDJGCZPYL, strBZ2, M_RESULT_LAMP.ZNDJGCZPY_PD, strPD_B, ""));
                        }

                        if (strPD_F == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯左内灯远光垂直偏移", M_RESULT_LAMP.ZNDYGCZPYL, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("ZNDYGCZPY_PD"))
                            {
                                dicYQFailItems.Add("ZNDYGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZNDYGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("ZNDYGCZPY_PD");
                            }
                        }

                        if (strPD_B == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯左内灯远光垂直偏移", M_RESULT_LAMP.ZNDJGCZPYL, strBZ2, "", "");
                            if (!dicYQFailItems.ContainsKey("ZNDJGCZPY_PD"))
                            {
                                dicYQFailItems.Add("ZNDJGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZNDJGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("ZNDJGCZPY_PD");
                            }
                        }
                    }
                }

                //右外灯远近光光强垂直偏移
                if (M_RESULT_LAMP.YWDYGCZPY != Nothing || M_RESULT_LAMP.YWDJGCZPY != Nothing)
                {
                    if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGCZPY_PD) || !string.IsNullOrEmpty(M_RESULT_LAMP.YWDJGCZPY_PD))
                    {
                        string strPD_F = GetPDResult(M_RESULT_LAMP.YWDYGCZPY_PD);
                        string strPD_B = GetPDResult(M_RESULT_LAMP.YWDJGCZPY_PD);
                        string strRemark = "";
                        string strRemark_F = "";
                        string strRemark_B = "";

                        strBZ1 = M_RESULT_LAMP.YWDYGCZPYL != Nothing ? M_RESULT_LAMP.YWDYGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.YWDYGCZPYXZSX.StrToIntVal() : Nothing;
                        strBZ2 = M_RESULT_LAMP.YWDJGCZPYL != Nothing ? M_RESULT_LAMP.YWDJGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.YWDJGCZPYXZSX.StrToIntVal() : Nothing;

                        if (IsGB7258)
                        {
                            strPD_F = AJGetLampPDResult(M_RESULT_LAMP.YWDYGCZPYL, M_RESULT_LAMP.YWDYGCZPY_PD);
                            strPD_B = AJGetLampPDResult(M_RESULT_LAMP.YWDJGCZPYL, M_RESULT_LAMP.YWDJGCZPY_PD);

                            strRemark = "灯高(右外远/近)" + M_RESULT_LAMP.YWDYGDG + "/" + M_RESULT_LAMP.YWDJGDG;
                            strRemark_F = "灯高(右外远)" + M_RESULT_LAMP.YWDYGDG;
                            strRemark_B = "灯高(右外近)" + M_RESULT_LAMP.YWDJGDG;


                            dicTestItems["key15"] = new Tuple<string, string, string, string, string>("前照灯右外灯远/近光垂直偏移(mm/10m)",
                                M_RESULT_LAMP.YWDYGCZPYL + " / " + M_RESULT_LAMP.YWDJGCZPYL,
                               strBZ1 + " / " + strBZ2,
                                GetAJResult_YQ(strPD_F, strPD_B), strRemark);
                        }
                        else
                        {
                            dicTestItems["key15"] = new Tuple<string, string, string, string, string>("前照灯右外灯远/近光垂直偏移(H)",
                              M_RESULT_LAMP.YWDYGCZPY + " / " + M_RESULT_LAMP.YWDJGCZPY,
                              strBZ1 + " / " + strBZ2,
                               GetAJResult_YQ(strPD_F, strPD_B), "");
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.YWDYGCZPY != Nothing && M_RESULT_LAMP.YWDYGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("YWDYGCZPY", new Tuple<string, string, string, string, string, string, string>
                            ("YWDYGCZPY", "前照灯右外灯远光垂直偏移(mm/10m)", M_RESULT_LAMP.YWDYGCZPYL.Trim(), strBZ1, M_RESULT_LAMP.YWDYGCZPY_PD.Trim(), strPD_F, strRemark_F));
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.YWDJGCZPY != Nothing && M_RESULT_LAMP.YWDJGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.YWDJGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("YWDJGCZPY", new Tuple<string, string, string, string, string, string, string>
                            ("YWDJGCZPY", "前照灯右外灯近光垂直偏移(mm/10m)", M_RESULT_LAMP.YWDJGCZPYL, strBZ2, M_RESULT_LAMP.YWDJGCZPY_PD, strPD_B, strRemark_B));
                        }

                        if (strPD_F == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯右外灯远光垂直偏移", M_RESULT_LAMP.YWDYGCZPYL, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("YWDYGCZPY_PD"))
                            {
                                dicYQFailItems.Add("YWDYGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("YWDYGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("YWDYGCZPY_PD");
                            }
                        }

                        if (strPD_B == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯右外灯近光垂直偏移", M_RESULT_LAMP.YWDJGCZPYL, strBZ2, "", "");
                            if (!dicYQFailItems.ContainsKey("YWDJGCZPY_PD"))
                            {
                                dicYQFailItems.Add("YWDJGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("YWDJGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("YWDJGCZPY_PD");
                            }
                        }
                    }
                }

                //右内灯远近光光强垂直偏移
                if (M_RESULT_LAMP.YNDYGCZPY != Nothing || M_RESULT_LAMP.YNDJGCZPY != Nothing)
                {
                    if (!string.IsNullOrEmpty(M_RESULT_LAMP.YNDYGCZPY_PD) || !string.IsNullOrEmpty(M_RESULT_LAMP.YNDJGCZPY_PD))
                    {
                        string strPD_F = GetPDResult(M_RESULT_LAMP.YNDYGCZPY_PD);
                        string strPD_B = GetPDResult(M_RESULT_LAMP.YNDJGCZPY_PD);
                        string strRemark = "";
                        string strRemark_F = "";
                        string strRemark_B = "";

                        strBZ1 = M_RESULT_LAMP.YNDYGCZPYL != Nothing ? M_RESULT_LAMP.YNDYGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.YNDYGCZPYXZSX.StrToIntVal() : Nothing;
                        strBZ2 = M_RESULT_LAMP.YNDJGCZPYL != Nothing ? M_RESULT_LAMP.YNDJGCZPYXZXX.StrToIntVal() + FromTo + M_RESULT_LAMP.YNDJGCZPYXZSX.StrToIntVal() : Nothing;

                        if (IsGB7258)
                        {
                            strPD_F = AJGetLampPDResult(M_RESULT_LAMP.YNDYGCZPYL, M_RESULT_LAMP.YNDYGCZPY_PD);
                            strPD_B = AJGetLampPDResult(M_RESULT_LAMP.YNDJGCZPYL, M_RESULT_LAMP.YNDJGCZPY_PD);

                            strRemark = "灯高(右内远/近)" + M_RESULT_LAMP.YNDYGDG + "/" + M_RESULT_LAMP.YNDJGDG;
                            strRemark_F = "灯高(右内远)" + M_RESULT_LAMP.YNDYGDG;
                            strRemark_B = "灯高(右内近)" + M_RESULT_LAMP.YNDJGDG;

                            dicTestItems["key16"] = new Tuple<string, string, string, string, string>("前照灯右内灯远/近光垂直偏移(mm/10m)",
                                M_RESULT_LAMP.YNDYGCZPYL + " / " + M_RESULT_LAMP.YNDJGCZPYL,
                               strBZ1 + " / " + strBZ2,
                                GetAJResult_YQ(strPD_F, strPD_B), strRemark);
                        }
                        else
                        {
                            dicTestItems["key16"] = new Tuple<string, string, string, string, string>("前照灯右内灯远/近光垂直偏移(H)",
                              M_RESULT_LAMP.YNDYGCZPY + " / " + M_RESULT_LAMP.YNDJGCZPY,
                             strBZ1 + " / " + strBZ2,
                              strPD_F + " / " + strPD_B, "");
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.YNDYGCZPY != Nothing && M_RESULT_LAMP.YNDYGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.YNDYGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("YNDYGCZPY", new Tuple<string, string, string, string, string, string, string>
                            ("YNDYGCZPY", "前照灯右内灯远光垂直偏移(mm/10m)", M_RESULT_LAMP.YNDYGCZPYL.Trim(), strBZ1, M_RESULT_LAMP.YNDYGCZPY_PD.Trim(), strPD_F, strRemark_F));
                        }

                        //联网18C62
                        if (M_RESULT_LAMP.YNDJGCZPY != Nothing && M_RESULT_LAMP.YNDJGCZPY_PD != Nothing && !string.IsNullOrEmpty(M_RESULT_LAMP.YNDJGCZPY_PD))
                        {
                            dicYQInfo_18C62.Add("YNDJGCZPY", new Tuple<string, string, string, string, string, string, string>
                            ("YNDJGCZPY", "前照灯右内灯近光垂直偏移(mm/10m)", M_RESULT_LAMP.YNDJGCZPYL.Trim(), strBZ2, M_RESULT_LAMP.YNDJGCZPY_PD.Trim(), strPD_B, strRemark_B));
                        }

                        if (strPD_F == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯右内灯远光垂直偏移", M_RESULT_LAMP.YNDYGCZPYL, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("YNDYGCZPY_PD"))
                            {
                                dicYQFailItems.Add("YNDYGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("YNDYGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("YNDYGCZPY_PD");
                            }
                        }

                        if (strPD_B == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("前照灯右内灯近光垂直偏移", M_RESULT_LAMP.YNDJGCZPYL, strBZ2, "", "");
                            if (!dicYQFailItems.ContainsKey("YNDJGCZPY_PD"))
                            {
                                dicYQFailItems.Add("YNDJGCZPY_PD", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("YNDJGCZPY_PD"))
                            {
                                dicYQFailItems.Remove("YNDJGCZPY_PD");
                            }
                        }
                    }
                }
            }
            #endregion

            #region 其他部分

            RESULT_SPEED_BLL speed_Bll = new RESULT_SPEED_BLL();
            RESULT_SPEED M_RESULT_SPEED = new RESULT_SPEED();
            RESULT_SPEED T_RESULT_SPEED = new RESULT_SPEED();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_SPEED = speed_Bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_SPEED = T_RESULT_SPEED;
                }

                mR.AutoMapping(T_RESULT_SPEED, M_RESULT_SPEED);
            }

            if (string.IsNullOrEmpty(M_RESULT_SPEED.JCLSH) == false)
            {
                if (!string.IsNullOrEmpty(M_RESULT_SPEED.SD_PD))
                {
                    if (Convert.ToInt32(M_RESULT_SPEED.SD_PD) > 0)
                    {
                        string strPD = GetPDResult(M_RESULT_SPEED.SD_PD);
                        strBZ1 = M_RESULT_SPEED.SDBZXX + "～" + M_RESULT_SPEED.SDBZSX;
                        dicTestItems["key17"] = new Tuple<string, string, string, string, string>("车速表指示误差(km/h)",
                                 M_RESULT_SPEED.SCSD,
                                strBZ1,
                                 strPD, "");
                        //联网18C62
                        if (Convert.ToInt32(M_RESULT_SPEED.SD_PD) > 0)
                        {
                            dicYQInfo_18C62.Add("SCSD", new Tuple<string, string, string, string, string, string, string>
                            ("SCSD", "车速表指示误差(km/h)", M_RESULT_SPEED.SCSD.Trim(), strBZ1, M_RESULT_SPEED.SD_PD.Trim(), strPD, ""));
                        }

                        if (strPD == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("车速表指示误差", M_RESULT_SPEED.SCSD, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("CSBZSWC"))
                            {
                                dicYQFailItems.Add("CSBZSWC", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("CSBZSWC"))
                            {
                                dicYQFailItems.Remove("CSBZSWC");
                            }
                        }
                    }
                }
            }

            //侧滑
            RESULT_SIDESLIP_BLL sideSlip_Bll = new RESULT_SIDESLIP_BLL();
            RESULT_SIDESLIP M_RESULT_SIDESLIP = new RESULT_SIDESLIP();
            RESULT_SIDESLIP T_RESULT_SIDESLIP = new RESULT_SIDESLIP();

            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_SIDESLIP = sideSlip_Bll.GetModel(lstJCLSH[i]);

                if (i == 0)
                {
                    M_RESULT_SIDESLIP = T_RESULT_SIDESLIP;
                }

                mR.AutoMapping(T_RESULT_SIDESLIP, M_RESULT_SIDESLIP);
            }
            if (!string.IsNullOrEmpty(M_RESULT_SIDESLIP.QQCH_PD))
            {
                if (Convert.ToInt32(M_RESULT_SIDESLIP.QQCH_PD) > 0)
                {
                    string strPD = GetPDResult(M_RESULT_SIDESLIP.QQCH_PD);
                    strBZ1 = M_RESULT_SIDESLIP.QQCHXZXX + "～" + M_RESULT_SIDESLIP.QQCHXZSX;
                    dicTestItems["key18"] = new Tuple<string, string, string, string, string>("转向轮横向侧滑量(m/km)",
                            M_RESULT_SIDESLIP.QQCHSCZ,
                            strBZ1,
                            strPD, "");

                    //联网18C62
                    if (Convert.ToInt32(M_RESULT_SIDESLIP.QQCH_PD) > 0)
                    {
                        dicYQInfo_18C62.Add("QQCHSCZ", new Tuple<string, string, string, string, string, string, string>
                        ("QQCHSCZ", "转向轮横向侧滑量(m/km)", M_RESULT_SIDESLIP.QQCHSCZ.Trim(), strBZ1, M_RESULT_SIDESLIP.QQCH_PD.Trim(), strPD, ""));
                    }

                    if (strPD == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("转向轮横向侧滑量", M_RESULT_SIDESLIP.QQCHSCZ, strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("ZXLHXCHL"))
                        {
                            dicYQFailItems.Add("ZXLHXCHL", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("ZXLHXCHL"))
                        {
                            dicYQFailItems.Remove("ZXLHXCHL");
                        }
                    }
                }
            }

            //路试

            if (lstJYXM.Contains("R1") || lstJYXM.Contains("R2"))
            {
                RESULT_ROAD_BLL road_Bll = new RESULT_ROAD_BLL();
                RESULT_ROAD M_RESULT_ROAD = new RESULT_ROAD();
                RESULT_ROAD T_RESULT_ROAD = new RESULT_ROAD();
                for (int i = 0; i < lstJCLSH.Count; i++)
                {
                    T_RESULT_ROAD = road_Bll.GetModel(lstJCLSH[i]);
                    if (i == 0)
                    {
                        M_RESULT_ROAD = T_RESULT_ROAD;
                    }

                    mR.AutoMapping(T_RESULT_ROAD, M_RESULT_ROAD);
                }
                //if (!string.IsNullOrEmpty(M_RESULT_ROAD.MFDD_PD))
                //{
                //    if (Convert.ToInt32(M_RESULT_ROAD.MFDD_PD) > 0)
                //    {
                //        string strPD = GetPDResult(M_RESULT_ROAD.MFDD_PD);
                //        strBZ1 = MoreThan + M_RESULT_ROAD.MFDDXZ;
                //        dicTestItems["key19"] = new Tuple<string, string, string, string, string>("路试制动(MFDD, m/s²)",
                //                 M_RESULT_ROAD.MFDD,
                //                 strBZ1,
                //                 strPD, "");

                //        //联网18C62
                //        if (Convert.ToInt32(M_RESULT_ROAD.MFDD_PD) > 0)
                //        {
                //            dicYQInfo_18C62.Add("MFDD", new Tuple<string, string, string, string, string, string, string>
                //            ("MFDD", "路试制动(MFDD, m/s²)", M_RESULT_ROAD.MFDD.Trim(), strBZ1, M_RESULT_ROAD.MFDD_PD.Trim(), strPD, ""));
                //        }

                //        if (strPD == FailC)
                //        {
                //            tpItems = new Tuple<string, string, string, string, string>("路试制动(MFDD, m/s²)", M_RESULT_ROAD.MFDD, strBZ1, "", "");
                //            if (!dicYQFailItems.ContainsKey("MFDD"))
                //            {
                //                dicYQFailItems.Add("MFDD", tpItems);
                //            }
                //        }
                //        else
                //        {
                //            if (dicYQFailItems.ContainsKey("MFDD"))
                //            {
                //                dicYQFailItems.Remove("MFDD");
                //            }
                //        }
                //    }
                //}

                //if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDXTSJ_PD))
                //{
                //    if (Convert.ToInt32(M_RESULT_ROAD.LSZDXTSJ_PD) > 0)
                //    {
                //        string strPD = GetPDResult(M_RESULT_ROAD.LSZDXTSJ_PD);
                //        strBZ1 = LessThan + M_RESULT_ROAD.LSXTSJXZ;
                //        dicTestItems["key20"] = new Tuple<string, string, string, string, string>("路试制动（协调时间,S）",
                //                M_RESULT_ROAD.LSZDXTSJ,
                //                 strBZ1,
                //                 strPD, "");

                //        //联网18C62
                //        if (Convert.ToInt32(M_RESULT_ROAD.LSZDXTSJ_PD) > 0)
                //        {
                //            dicYQInfo_18C62.Add("LSZDXTSJ", new Tuple<string, string, string, string, string, string, string>
                //            ("LSZDXTSJ", "路试制动性能（协调时间,S）", M_RESULT_ROAD.LSZDXTSJ.Trim(), strBZ1, M_RESULT_ROAD.LSZDXTSJ_PD.Trim(), strPD, ""));
                //        }

                //        if (strPD == FailC)
                //        {
                //            tpItems = new Tuple<string, string, string, string, string>("路试制动性能（协调时间,S）", M_RESULT_ROAD.LSZDXTSJ, strBZ1, "", "");
                //            if (!dicYQFailItems.ContainsKey("LSZDXTSJ"))
                //            {
                //                dicYQFailItems.Add("LSZDXTSJ", tpItems);
                //            }
                //        }
                //        else
                //        {
                //            if (dicYQFailItems.ContainsKey("LSZDXTSJ"))
                //            {
                //                dicYQFailItems.Remove("LSZDXTSJ");
                //            }
                //        }
                //    }
                //}
          

                if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDPPQK))
                {
                    string LSZDPPQK_PD = "";


                    string strPD = Convert.ToInt32(M_RESULT_ROAD.LSZDPPQK) == 1 ? "合格" : "不合格";
                    strBZ1 = "不跑偏";
                    string strJG = Convert.ToInt32(M_RESULT_ROAD.LSZDPPQK) == 1 ? "不跑偏" : "跑偏";
                    dicTestItems["key21"] = new Tuple<string, string, string, string, string>("路试制动（稳定性）",
                             strJG,
                             strBZ1,
                             strPD, "");

                    //联网18C62
                    dicYQInfo_18C62.Add("LSZDPPQK", new Tuple<string, string, string, string, string, string, string>
                    ("LSZDPPQK", "路试制动（稳定性）", strJG, strBZ1, M_RESULT_ROAD.LSZDPPQK, strPD, ""));

                    if (strPD == FailC)
                    {
                        tpItems = new Tuple<string, string, string, string, string>("路试制动（稳定性）", strJG, strBZ1, "", "");
                        if (!dicYQFailItems.ContainsKey("LSZDPPQK"))
                        {
                            dicYQFailItems.Add("LSZDPPQK", tpItems);
                        }
                    }
                    else
                    {
                        if (dicYQFailItems.ContainsKey("LSZDPPQK"))
                        {
                            dicYQFailItems.Remove("LSZDPPQK");
                        }
                    }
                }

                int iSFPDZC = 0;
                string strVehicleId = Vehicle_Info.HPZLDH + Vehicle_Info.HPHM;

                LOGIN_VEHICLE_INFO_BLL bll = new LOGIN_VEHICLE_INFO_BLL();
                LOGIN_VEHICLE_INFO[] infos = bll.GetModelList(string.Format(" VEHICLEID = '{0}'", strVehicleId));

                if (infos.Length > 0)
                {
                    iSFPDZC = Convert.ToInt32(infos[0].SFPDZC);
                }

                iSFPDZC = iSFPDZC == 0 || iSFPDZC == 1 ? iSFPDZC : 0;

                if (Convert.ToBoolean(iSFPDZC) || (QDZSL == 2 && !IsRoadTest()))
                {

                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZC_PD))
                    {
                        if (Convert.ToInt32(M_RESULT_ROAD.LSZC_PD) > 0)
                        {
                            string strPD = GetPDResult(M_RESULT_ROAD.LSZC_PD);
                            strBZ1 = "不溜坡";
                            string strJG = M_RESULT_ROAD.LSZC_PD == "1" ? "不溜坡" : "溜坡";
                            dicTestItems["key22"] = new Tuple<string, string, string, string, string>("路试驻车制动（坡道）",
                                     strJG,
                                     strBZ1,
                                     strPD, "");

                            //联网18C62
                            if (Convert.ToInt32(M_RESULT_ROAD.LSZC_PD) > 0)
                            {
                                dicYQInfo_18C62.Add("LSZDJLXZ", new Tuple<string, string, string, string, string, string, string>
                                ("LSZDJLXZ", "路试驻车制动（坡道）", strJG, strBZ1, M_RESULT_ROAD.LSZC_PD.Trim(), strPD, ""));
                            }

                            if (strPD == FailC)
                            {
                                tpItems = new Tuple<string, string, string, string, string>("路试驻车制动（坡道）", strJG, strBZ1, "", "");
                                if (!dicYQFailItems.ContainsKey("PDZC"))
                                {
                                    dicYQFailItems.Add("PDZC", tpItems);
                                }
                            }
                            else
                            {
                                if (dicYQFailItems.ContainsKey("PDZC"))
                                {
                                    dicYQFailItems.Remove("PDZC");
                                }
                            }
                        }
                    }
                }
            }

            if (bShowWKCCAndZBZL)
            {
                string strBZ = "±100或±2%";
                if (IsNewVehicle)
                {
                    strBZ = "±50或±1%";
                }

                //外廓尺寸
                RESULT_OVERALLSIZE_BLL overAllSize_BLL = new RESULT_OVERALLSIZE_BLL();
                RESULT_OVERALLSIZE M_RESULT_OVERALLSIZE = new RESULT_OVERALLSIZE();
                RESULT_OVERALLSIZE T_RESULT_OVERALLSIZE = new RESULT_OVERALLSIZE();
                for (int i = 0; i < lstJCLSH.Count; i++)
                {
                    T_RESULT_OVERALLSIZE = overAllSize_BLL.GetModel(lstJCLSH[i]);
                    if (i == 0)
                    {
                        M_RESULT_OVERALLSIZE = T_RESULT_OVERALLSIZE;
                    }

                    mR.AutoMapping(T_RESULT_OVERALLSIZE, M_RESULT_OVERALLSIZE);
                }
                if (!string.IsNullOrEmpty(M_RESULT_OVERALLSIZE.ZCWKCC_PD))
                {
                    if (Convert.ToInt32(M_RESULT_OVERALLSIZE.ZCWKCC_PD) > 0)
                    {
                        string strPD = GetPDResult(M_RESULT_OVERALLSIZE.ZCWKCC_PD);
                        dicTestItems["key23"] = new Tuple<string, string, string, string, string>("外廓尺寸(mm)",
                                 M_RESULT_OVERALLSIZE.ZCSCWKCCCD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCKD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCGD,
                                 strBZ,
                                 strPD, "");

                        //联网18C62
                        if (Convert.ToInt32(M_RESULT_OVERALLSIZE.ZCWKCC_PD) > 0)
                        {
                            string strWKCCRet = M_RESULT_OVERALLSIZE.ZCSCWKCCCD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCKD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCGD;
                            dicYQInfo_18C62.Add("ZCSCWKCCCD", new Tuple<string, string, string, string, string, string, string>
                            ("ZCSCWKCCCD", "外廓尺寸(mm)", strWKCCRet, strBZ, M_RESULT_OVERALLSIZE.ZCWKCC_PD.Trim(), strPD, ""));
                        }

                        if (strPD == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("外廓尺寸", M_RESULT_OVERALLSIZE.ZCSCWKCCCD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCKD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCGD, strBZ, "", "");
                            if (!dicYQFailItems.ContainsKey("WKCC"))
                            {
                                dicYQFailItems.Add("WKCC", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("WKCC"))
                            {
                                dicYQFailItems.Remove("WKCC");
                            }
                        }
                    }
                }


                //整备质量
                RESULT_KERBMASS_BLL kerbMass_BLL = new RESULT_KERBMASS_BLL();
                RESULT_KERBMASS M_RESULT_KERBMASS = new RESULT_KERBMASS();
                RESULT_KERBMASS T_RESULT_KERBMASS = new RESULT_KERBMASS();
                for (int i = 0; i < lstJCLSH.Count; i++)
                {
                    T_RESULT_KERBMASS = kerbMass_BLL.GetModel(lstJCLSH[i]);
                    if (i == 0)
                    {
                        M_RESULT_KERBMASS = T_RESULT_KERBMASS;
                    }

                    mR.AutoMapping(T_RESULT_KERBMASS, M_RESULT_KERBMASS);
                }
                if (!string.IsNullOrEmpty(M_RESULT_KERBMASS.ZBZL_PD))
                {
                    if (Convert.ToInt32(M_RESULT_KERBMASS.ZBZL_PD) > 0)
                    {
                        string strPD = GetPDResult(M_RESULT_KERBMASS.ZBZL_PD);
                        strBZ1 = M_RESULT_KERBMASS.ZBZLXZXX + "或" + M_RESULT_KERBMASS.ZBZLXZSX;
                        dicTestItems["key24"] = new Tuple<string, string, string, string, string>("整备质量(kg)",
                                 M_RESULT_KERBMASS.SCZBZL,
                                 strBZ1,
                                 strPD, "");

                        //联网18C62
                        if (Convert.ToInt32(M_RESULT_KERBMASS.ZBZL_PD) > 0)
                        {
                            dicYQInfo_18C62.Add("SCZBZL", new Tuple<string, string, string, string, string, string, string>
                            ("SCZBZL", "整备质量(kg)", M_RESULT_KERBMASS.SCZBZL, strBZ1, M_RESULT_KERBMASS.ZBZL_PD.Trim(), strPD, ""));

                            dicYQInfo_18C82.Add("SCZBZL", new Tuple<string, string, string, string, string, string>
                            ("SCZBZL", "整备质量(kg)", M_RESULT_KERBMASS.SCZBZL.Trim(), strBZ1, M_RESULT_BRAKE.ZCZDLV_PD.Trim(), ""));
                        }

                        if (strPD == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("整备质量", M_RESULT_KERBMASS.SCZBZL, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("ZBZL"))
                            {
                                dicYQFailItems.Add("ZBZL", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("ZBZL"))
                            {
                                dicYQFailItems.Remove("ZBZL");
                            }
                        }
                    }
                }
            }
            #endregion

            #region 摩托车
            if (IsMTC)
            {
                RESULT_SDS_BLL sds_bll = new RESULT_SDS_BLL();
                RESULT_SDS M_RESULT_SDS = new RESULT_SDS();
                RESULT_SDS T_RESULT_SDS = new RESULT_SDS();
                for (int i = 0; i < lstJCLSH.Count; i++)
                {
                    T_RESULT_SDS = sds_bll.GetModel(lstJCLSH[i]);
                    if (i == 0)
                    {
                        M_RESULT_SDS = T_RESULT_SDS;
                    }

                    mR.AutoMapping(T_RESULT_SDS, M_RESULT_SDS);
                }

                if (!string.IsNullOrEmpty(M_RESULT_SDS.GDSCO_PD))
                {
                    if (Convert.ToInt32(M_RESULT_SDS.GDSCO_PD) > 0)
                    {
                        if (Convert.ToInt32(M_RESULT_SDS.GDSCO_PD) != 3 && Convert.ToDouble(M_RESULT_SDS.GDSCO) < Convert.ToDouble(M_RESULT_SDS.GDSCOXZ))
                        {
                            M_RESULT_SDS.GDSCO_PD = "1";
                        }

                        string strPD = GetPDResult(M_RESULT_SDS.GDSCO_PD);
                        strBZ1 = M_RESULT_SDS.GDSCOXZ;
                        //dicTestItems["key26"] = new Tuple<string, string, string, string, string>("高怠速一氧化碳",
                        //        M_RESULT_SDS.GDSCO,
                        //        strBZ1,
                        //        strPD, "");

                        //联网18C62
                        //if (Convert.ToInt32(M_RESULT_SDS.GDSCO_PD) > 0)
                        // {
                        //     dicYQInfo_18C62.Add("GDSCO", new Tuple<string, string, string, string, string, string, string>
                        //    ("GDSCO", "高怠速一氧化碳", M_RESULT_SDS.GDSCO.Trim(), strBZ1, M_RESULT_SDS.GDSCO_PD.Trim(), strPD, ""));
                        // }

                        if (strPD == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("高怠速一氧化碳", M_RESULT_SDS.GDSCO, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("GDSCO"))
                            {
                                dicYQFailItems.Add("GDSCO", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("GDSCO"))
                            {
                                dicYQFailItems.Remove("GDSCO");
                            }
                        }
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_SDS.GDSHC_PD))
                {
                    if (Convert.ToInt32(M_RESULT_SDS.GDSHC_PD) > 0)
                    {
                        if (Convert.ToInt32(M_RESULT_SDS.GDSHC_PD) != 3 && Convert.ToDouble(M_RESULT_SDS.GDSHC) < Convert.ToDouble(M_RESULT_SDS.GDSHCXZ))
                        {
                            M_RESULT_SDS.GDSHC_PD = "1";
                        }


                        string strPD = GetPDResult(M_RESULT_SDS.GDSHC_PD);
                        strBZ1 = M_RESULT_SDS.GDSHCXZ;
                        //dicTestItems["key27"] = new Tuple<string, string, string, string, string>("高怠速碳氢",
                        //        M_RESULT_SDS.GDSHC,
                        //        strBZ1,
                        //        strPD, "");

                        ////联网18C62
                        //if (Convert.ToInt32(M_RESULT_SDS.GDSHC_PD) > 0)
                        //{
                        //    dicYQInfo_18C62.Add("GDSHC", new Tuple<string, string, string, string, string, string, string>
                        //    ("GDSHC", "高怠速碳氢", M_RESULT_SDS.GDSHC.Trim(), strBZ1, M_RESULT_SDS.GDSHC_PD.Trim(), strPD, ""));
                        //}

                        if (strPD == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("高怠速碳氢", M_RESULT_SDS.GDSHC, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("GDSHC"))
                            {
                                dicYQFailItems.Add("GDSHC", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("GDSHC"))
                            {
                                dicYQFailItems.Remove("GDSHC");
                            }
                        }
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_SDS.DSCO_PD))
                {
                    if (Convert.ToInt32(M_RESULT_SDS.DSCO_PD) > 0)
                    {
                        if (Convert.ToInt32(M_RESULT_SDS.DSCO_PD) != 3 && Convert.ToDouble(M_RESULT_SDS.DSCO) < 2.0)
                        {
                            M_RESULT_SDS.DSCO_PD = "1";
                        }

                        string strPD = GetPDResult(M_RESULT_SDS.DSCO_PD);
                        strBZ1 = "2.0";
                        //dicTestItems["key28"] = new Tuple<string, string, string, string, string>("怠速一氧化碳",
                        //        M_RESULT_SDS.DSCO,
                        //        strBZ1,
                        //        strPD, "");

                        //联网18C62
                        //if (Convert.ToInt32(M_RESULT_SDS.DSCO_PD) > 0)
                        //{
                        //    dicYQInfo_18C62.Add("DSCO", new Tuple<string, string, string, string, string, string, string>
                        //    ("DSCO", "怠速一氧化碳", M_RESULT_SDS.DSCO.Trim(), strBZ1, M_RESULT_SDS.DSCO_PD.Trim(), strPD, ""));
                        //}

                        if (strPD == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("怠速一氧化碳", M_RESULT_SDS.DSCO, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("DSCO"))
                            {
                                dicYQFailItems.Add("DSCO", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("DSCO"))
                            {
                                dicYQFailItems.Remove("DSCO");
                            }
                        }
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_SDS.DSHC_PD))
                {
                    if (Convert.ToInt32(M_RESULT_SDS.DSHC_PD) > 0)
                    {
                        if (Convert.ToInt32(M_RESULT_SDS.DSHC_PD) != 3 && Convert.ToDouble(M_RESULT_SDS.DSHC) < Convert.ToDouble(M_RESULT_SDS.DSHCXZ))
                        {
                            M_RESULT_SDS.DSHC_PD = "1";
                        }

                        string strPD = GetPDResult(M_RESULT_SDS.DSHC_PD);
                        strBZ1 = M_RESULT_SDS.DSHCXZ;
                        //dicTestItems["key29"] = new Tuple<string, string, string, string, string>("怠速碳氢",
                        //        M_RESULT_SDS.DSHC,
                        //        strBZ1,
                        //        strPD, "");

                        ////联网18C62
                        //if (Convert.ToInt32(M_RESULT_SDS.DSHC_PD) > 0)
                        //{
                        //    dicYQInfo_18C62.Add("DSHC", new Tuple<string, string, string, string, string, string, string>
                        //    ("DSHC", "怠速碳氢", M_RESULT_SDS.DSHC.Trim(), strBZ1, M_RESULT_SDS.DSHC_PD.Trim(), strPD, ""));
                        //}

                        if (strPD == FailC)
                        {
                            tpItems = new Tuple<string, string, string, string, string>("怠速碳氢", M_RESULT_SDS.DSHC, strBZ1, "", "");
                            if (!dicYQFailItems.ContainsKey("DSHC"))
                            {
                                dicYQFailItems.Add("DSHC", tpItems);
                            }
                        }
                        else
                        {
                            if (dicYQFailItems.ContainsKey("DSHC"))
                            {
                                dicYQFailItems.Remove("DSHC");
                            }
                        }
                    }
                }

            }
            #endregion

            int iIndex = 1;
            for (int i = 1; i < 30; i++)
            {
                if (!string.IsNullOrEmpty(dicTestItems["key" + i].Item1))
                {
                    drYQ_Item["YQ_Seq_" + iIndex] = iIndex;
                    drYQ_Item["YQ_Item_" + iIndex] = dicTestItems["key" + i].Item1;
                    drYQ["Data_" + iIndex] = dicTestItems["key" + i].Item2;
                    drYQ["STD_" + iIndex] = dicTestItems["key" + i].Item3;
                    drYQ["PD_" + iIndex] = dicTestItems["key" + i].Item4;
                    drYQ_Item["BZ_Item_" + iIndex] = dicTestItems["key" + i].Item5;
                    iIndex++;
                }
            }

            dtYQ.Rows.Add(drYQ);
            dtYQ_Item.Rows.Add(drYQ_Item);

            lstDt.Add(dtYQ);
            lstDt.Add(dtYQ_Item);

            return lstDt;
        }

        /// <summary>
        /// 判断是否是四驱车上平板线
        /// </summary>
        /// <returns></returns>
        private bool IsRoadTest()
        {
            bool isRoadTest = false;
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            foreach (var item in lstJCLSH)
            {
                RESULT_VEHICLE_INFO entity = bll.GetModel(item);
                if (entity.JYXM.Contains("B0") || entity.JYXM.Contains("B1") || entity.JYXM.Contains("B2"))
                {
                    isRoadTest = true;
                    break;
                }
                
            }
            return isRoadTest;
        }

        /// <summary>
        /// 安检主报告单
        /// </summary>
        /// <returns></returns>
        public DataSet BindReportResource_Report(DataSet ds, out Dictionary<string, Tuple<string, string, string, string, string>> dicFailItems)
        {
            DataTable dtBase = GetDataTableReport_Base(ds.Tables["dtBase"]);
            Dictionary<string, Tuple<string, string, string, string>> dicRGInfo;
            DataTable dtRG = GetDataTableReport_RG(ds.Tables["dtRG"], out dicRGInfo);
            Dictionary<string, Tuple<string, string, string, string, string, string>> dicYQInfos_18C82;
            Dictionary<string, Tuple<string, string, string, string, string, string, string>> dicYQInfos_18C62;
            List<DataTable> lstDataTable = GetDataTableReport_YQ(ds, out dicYQInfos_18C82, out dicYQInfos_18C62);

            string strJY_Mess = "您的爱车";
            var lstFailsKeys = dicYQFailItems.Keys.ToList();
            for (int i = 0; i < dicYQFailItems.Keys.Count; i++)
            {
                if (i != dicYQFailItems.Keys.Count - 1)
                {
                    strJY_Mess += dicYQFailItems[lstFailsKeys[i]].Item1 + "、";
                }
                else
                {
                    strJY_Mess += dicYQFailItems[lstFailsKeys[i]].Item1;
                }
            }

            if (dicYQFailItems.Keys.Count > 0)
            {
                strJY_Mess += "不合格，请及时调修后复检，消除安全隐患。";
            }
            else
            {
                strJY_Mess = "合格";
            }

            ds.Tables["dtBase"].Rows[0]["JY_Mess"] = strJY_Mess;
            ds.Tables["dtBase"].Rows[0]["JYJH"] = AJGetSuggestItems(JCLSH, IsSingle);

            dicFailItems = dicYQFailItems;

            return ds;
        }

        /// <summary>
        /// 得到建议部分内容
        /// </summary>
        /// <param name="JCLSH"></param>
        /// <param name="bSingle"></param>
        /// <returns></returns>
        private string AJGetSuggestItems(string JCLSH, bool bSingle)
        {
            string strRet = "";
            BGD_SUGGEST_BLL bll = new BGD_SUGGEST_BLL();
            var bgd = bll.GetModelList("JCLSH='" + JCLSH + "' and SingleFlag='" + bSingle + "'");
            if (bgd.Length == 0)
            {
                strRet = "";
            }
            else
            {
                if (!string.IsNullOrEmpty(bgd[0].SuggestItems))
                {
                    string strValues = bgd[0].SuggestItems;
                    CONST_DEFINE_WEB_BLL web_bll = new CONST_DEFINE_WEB_BLL();
                    strValues = strValues.Substring(0, strValues.Length - 1);
                    if (strValues.Contains(","))
                    {
                        string[] lst = strValues.Split(',');
                        foreach (var v in lst)
                        {
                            strRet += web_bll.GetModel(Convert.ToInt32(v)).Remark + "\r\n";
                        }
                    }
                    else
                    {
                        strRet += web_bll.GetModel(Convert.ToInt32(strValues)).Remark;
                    }
                }
            }

            return strRet;
        }

        /// <summary>
        /// 得到安检下次开始检测时间
        /// </summary>
        /// <param name="vInfo"></param>
        /// <returns></returns>
        private string[] AJGetStartEndTime(RESULT_VEHICLE_INFO vInfo)
        {
            string[] str = new string[2];

            BGD_SUGGEST_BLL bgd_bll = new BGD_SUGGEST_BLL();
            var vBGD = bgd_bll.GetModelList("JCLSH='" + vInfo.JCLSH + "'");

            if (vBGD.Length > 0)
            {
                if (!string.IsNullOrEmpty(vBGD[0].SugNextStartTime) && !string.IsNullOrEmpty(vBGD[0].SugNextEndTime))
                {
                    str[0] = vBGD[0].SugNextStartTime;
                    str[1] = vBGD[0].SugNextEndTime;
                    return str;
                }
            }

            //大型客车
            bool bDX = vInfo.CLZLDH.Substring(0, 1) == "K" && (!IsXXKCAndWXKC);

            DateTime dtCCDJRQ = Convert.ToDateTime(vInfo.CCDJRQ);
            DateTime dtJCRQ = Convert.ToDateTime(vInfo.JCRQ);

            int iYear = Convert.ToDateTime(vInfo.JCRQ).Year;
            int iMonth = Convert.ToDateTime(vInfo.JCRQ).Month;

            bool bNextPro;

            if (IsYYC)
            {//营运车
                if (GetTimeSpan(0, 5, dtCCDJRQ, dtJCRQ, out bNextPro))
                {
                    DateTime dtNextStart = dtCCDJRQ.AddMonths((dtJCRQ.Year - dtCCDJRQ.Year + 1) * 12 - 2);
                    DateTime dtNextEnd = dtCCDJRQ.AddMonths((dtJCRQ.Year - dtCCDJRQ.Year + 1) * 12);
                    str[0] = dtNextStart.Year.ToString() + "年" + dtNextStart.Month.ToString("D2") + "月";
                    str[1] = dtNextEnd.Year.ToString() + "年" + dtNextEnd.Month.ToString("D2") + "月";
                }
                else
                {
                    for (int i = 0; i < 20; i++)
                    {//2018-12-16
                        DateTime dtStart = dtCCDJRQ.AddMonths(60 + (i * 6)); //2018年1月
                        DateTime dtEnd = dtCCDJRQ.AddMonths(66 + (i * 6));   //2018年6月
                        if (i == 0)
                        {
                            dtStart = dtCCDJRQ.AddMonths(58 + (i * 6));
                        }

                        if (dtJCRQ >= dtStart && dtJCRQ < dtEnd)
                        {
                            if (dtEnd.Month == dtJCRQ.Month)
                            {
                                i++;
                            }

                            iYear = dtCCDJRQ.AddMonths(64 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(64 + (i * 6)).Month;

                            str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                            iYear = dtCCDJRQ.AddMonths(66 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(66 + (i * 6)).Month;
                            str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                            break;
                        }
                    }
                }
            }
            else if (!IsYYC && (IsHC || bDX))
            {//非营运车并且是货车或者客车
                if (GetTimeSpan(0, 10, dtCCDJRQ, dtJCRQ, out bNextPro))
                {
                    DateTime dtNextStart = dtCCDJRQ.AddMonths((dtJCRQ.Year - dtCCDJRQ.Year + 1) * 12 - 2);
                    DateTime dtNextEnd = dtCCDJRQ.AddMonths((dtJCRQ.Year - dtCCDJRQ.Year + 1) * 12);
                    str[0] = dtNextStart.Year.ToString() + "年" + dtNextStart.Month.ToString("D2") + "月";
                    str[1] = dtNextEnd.Year.ToString() + "年" + dtNextEnd.Month.ToString("D2") + "月";
                }
                else
                {
                    for (int i = 0; i < 30; i++)
                    {
                        DateTime dtStart = dtCCDJRQ.AddMonths(120 + (i * 6));
                        DateTime dtEnd = dtCCDJRQ.AddMonths(126 + (i * 6));
                        if (i == 0)
                        {
                            dtStart = dtCCDJRQ.AddMonths(118 + (i * 6));
                        }

                        if (dtJCRQ >= dtStart && dtJCRQ < dtEnd)
                        {
                            if (dtEnd.Month == dtJCRQ.Month)
                            {
                                i++;
                            }
                            iYear = dtCCDJRQ.AddMonths(124 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(126 + (i * 6)).Month;

                            str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                            iYear = dtCCDJRQ.AddMonths(126 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(126 + (i * 6)).Month;
                            str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                            break;
                        }
                    }
                }
            }
            else if (IsXXKCAndWXKC)
            {
                if (GetTimeSpan(0, 6, dtCCDJRQ, dtJCRQ, out bNextPro))
                {
                    if (dtJCRQ > dtCCDJRQ && dtJCRQ < dtCCDJRQ.AddMonths(24))
                    {//两年内
                        iYear = dtCCDJRQ.AddMonths(22).Year;
                        iMonth = dtCCDJRQ.AddMonths(22).Month;
                        str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                        iYear = dtCCDJRQ.AddMonths(24).Year;
                        iMonth = dtCCDJRQ.AddMonths(24).Month;
                        str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                    }
                    else if (dtJCRQ >= dtCCDJRQ.AddMonths(24) && dtJCRQ < dtCCDJRQ.AddMonths(48))
                    {//四年内
                        iYear = dtCCDJRQ.AddMonths(46).Year;
                        iMonth = dtCCDJRQ.AddMonths(46).Month;
                        str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                        iYear = dtCCDJRQ.AddMonths(48).Year;
                        iMonth = dtCCDJRQ.AddMonths(48).Month;
                        str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                    }
                    else if (dtJCRQ >= dtCCDJRQ.AddMonths(48) && dtJCRQ < dtCCDJRQ.AddMonths(70))
                    {//六年内
                        iYear = dtCCDJRQ.AddMonths(70).Year;
                        iMonth = dtCCDJRQ.AddMonths(70).Month;
                        str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                        iYear = dtCCDJRQ.AddMonths(72).Year;
                        iMonth = dtCCDJRQ.AddMonths(72).Month;
                        str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                    }
                }
                else if (GetTimeSpan(6, 15, dtCCDJRQ, dtJCRQ, out bNextPro))
                {
                    DateTime dtNextStart = dtCCDJRQ.AddMonths((dtJCRQ.Year - dtCCDJRQ.Year + 1) * 12 - 2);
                    DateTime dtNextEnd = dtCCDJRQ.AddMonths((dtJCRQ.Year - dtCCDJRQ.Year + 1) * 12);
                    str[0] = dtNextStart.Year.ToString() + "年" + dtNextStart.Month.ToString("D2") + "月";
                    str[1] = dtNextEnd.Year.ToString() + "年" + dtNextEnd.Month.ToString("D2") + "月";
                }
                else
                {
                    for (int i = 0; i < 30; i++)
                    {
                        DateTime dtStart = dtCCDJRQ.AddMonths(180 + (i * 6));
                        DateTime dtEnd = dtCCDJRQ.AddMonths(186 + (i * 6));
                        if (i == 0)
                        {
                            dtStart = dtCCDJRQ.AddMonths(178 + (i * 6));
                        }

                        if (dtJCRQ >= dtStart && dtJCRQ < dtEnd)
                        {
                            if (dtEnd.Month == dtJCRQ.Month)
                            {
                                i++;
                            }

                            iYear = dtCCDJRQ.AddMonths(184 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(184 + (i * 6)).Month;

                            str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                            iYear = dtCCDJRQ.AddMonths(186 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(186 + (i * 6)).Month;
                            str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                            break;
                        }
                    }
                }
            }
            else if (IsMTC)
            {
                if (GetTimeSpan(0, 4, dtCCDJRQ, dtJCRQ, out bNextPro))
                {
                    if (dtJCRQ > dtCCDJRQ && dtJCRQ < dtCCDJRQ.AddMonths(24))
                    {//两年内
                        iYear = dtCCDJRQ.AddMonths(22).Year;
                        iMonth = dtCCDJRQ.AddMonths(22).Month;
                        str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                        iYear = dtCCDJRQ.AddMonths(24).Year;
                        iMonth = dtCCDJRQ.AddMonths(24).Month;
                        str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                    }
                    else if (dtJCRQ >= dtCCDJRQ.AddMonths(24) && dtJCRQ < dtCCDJRQ.AddMonths(46))
                    {
                        iYear = dtCCDJRQ.AddMonths(46).Year;
                        iMonth = dtCCDJRQ.AddMonths(46).Month;
                        str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                        iYear = dtCCDJRQ.AddMonths(48).Year;
                        iMonth = dtCCDJRQ.AddMonths(48).Month;
                        str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                    }
                }
                else
                {
                    for (int i = 0; i < 20; i++)
                    {//2018-12-16
                        DateTime dtStart = dtCCDJRQ.AddMonths(48 + (i * 12)); //2018年1月
                        DateTime dtEnd = dtCCDJRQ.AddMonths(60 + (i * 12));   //2018年6月
                        if (i == 0)
                        {
                            dtStart = dtCCDJRQ.AddMonths(46 + (i * 12));
                        }

                        if (dtJCRQ <= dtStart && dtJCRQ < dtEnd)
                        {
                            if (dtEnd.Month == dtJCRQ.Month)
                            {
                                i++;
                            }

                            iYear = dtCCDJRQ.AddMonths(52 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(54 + (i * 6)).Month;

                            str[0] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";

                            iYear = dtCCDJRQ.AddMonths(54 + (i * 6)).Year;
                            iMonth = dtCCDJRQ.AddMonths(54 + (i * 6)).Month;
                            str[1] = iYear.ToString() + "年" + iMonth.ToString("D2") + "月";
                            break;
                        }
                    }
                }
            }

            return str;
        }

        /// <summary>
        /// 得到是否在检测的时间点内
        /// </summary>
        /// <param name="iStart"></param>
        /// <param name="iEnd"></param>
        /// <param name="dtCCDJRQ"></param>
        /// <param name="dtJCRQ"></param>
        /// <returns></returns>
        private bool GetTimeSpan(int iStart, int iEnd, DateTime dtCCDJRQ, DateTime dtJCRQ, out bool bNextPor)
        {
            bool bRet = false;
            bNextPor = false;
            DateTime dtStart = dtCCDJRQ.AddYears(iStart);
            if (iStart != 0)
            {
                dtStart = dtCCDJRQ.AddYears(iStart).AddMonths(-2);
            }
            DateTime dtEnd = dtCCDJRQ.AddYears(iEnd).AddMonths(-2);

            if (dtJCRQ > dtEnd && dtJCRQ <= dtEnd.AddMonths(2))
            {
                bNextPor = true;
            }

            if (dtJCRQ >= dtStart && dtJCRQ < dtEnd)
            {
                bRet = true;
            }
            else
            {
                bRet = false;
            }

            return bRet;
        }



        /// <summary>
        /// 得到安检国标
        /// </summary>
        /// <param name="vInfo"></param>
        /// <returns></returns>
        private string GetAJ_GB(RESULT_VEHICLE_INFO vInfo)
        {
            string strRet = "GB7258-2017、 GB21861-2014";

            //牵引车，作业车，货车
            if (bQYC || IsZYC || IsHC)
            {
                strRet += "、 GB23254-2009";
            }

            if (IsHC || IsGC)
            {
                strRet += "、 GB1589-2016";
            }

            DateTime d;
            if (DateTime.TryParse(vInfo.CCRQ, out d))
            {
                DateTime dtCCRQ = Convert.ToDateTime(vInfo.CCRQ);

                if ((IsHC && dtCCRQ > Convert.ToDateTime("2012-09-01") && ZZL > 12000)
                    || (IsGC && string.IsNullOrEmpty(vInfo.CSC) && Convert.ToInt32(vInfo.CSC) > 8000)
                    || (IsZYC && dtCCRQ > Convert.ToDateTime("2014-01-01") && ZZL > 12000))
                {
                    strRet += "、 GB25990-2010";
                }
            }

            return strRet;
        }

        /// <summary>
        /// 得到是否测试人工
        /// </summary>
        /// <returns></returns>
        private bool GetIsTestRG()
        {
            bool b = false;
            RESULT_CHASISS_MANUAL_BLL manual_bll = new RESULT_CHASISS_MANUAL_BLL();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                var manual = manual_bll.GetModel(lstJCLSH[i]);
                if (!string.IsNullOrEmpty(manual.JCLSH))
                {
                    b = true;
                    break;
                }
            }

            return b;
        }

        /// <summary>
        /// 得到不合格项目汇总
        /// </summary>
        /// <param name="str"></param>
        /// <returns></returns>
        private string GetMSResult(string str)
        {
            string strValue = "";
            OUTLOOK_CHASISS_SUBITEM_BLL bll = new OUTLOOK_CHASISS_SUBITEM_BLL();
            if (!string.IsNullOrEmpty(str.Trim()))
            {
                if (str == Nothing)
                {
                    strValue = NothingC;
                }
                else
                {
                    strValue = str;
                }
            }
            else
            {
                strValue = Nothing;
            }
            return strValue;
        }

        /// <summary>
        /// 得到人工检验基本信息
        /// </summary>
        /// <param name="dtBase"></param>
        /// <returns></returns>
        public DataTable GetDataTableRG_Base(DataTable dtBase)
        {
            DataRow drBase = dtBase.NewRow();
            drBase["HPHM"] = Vehicle_Info.HPHM.Contains("试") ? "" : Vehicle_Info.HPHM;
            drBase["CLZL"] = Vehicle_Info.CLZL;
            drBase["AJLSH"] = Vehicle_Info.AJLSH;
            drBase["SYXZ"] = Vehicle_Info.SYXZ;
            drBase["LJXSLC"] = Vehicle_Info.LJXSLC;
            DateTime d;
            if (DateTime.TryParse(Vehicle_Info.CCRQ, out d))
            {
                drBase["CCRQ"] = Convert.ToDateTime(Vehicle_Info.CCRQ).ToString("yyyy-MM-dd");
            }
            else
            {
                drBase["CCRQ"] = string.Empty;
            }
            drBase["CCDJRQ"] = Convert.ToDateTime(Vehicle_Info.CCDJRQ).ToString("yyyy-MM-dd");
            drBase["JCRQ"] = Convert.ToDateTime(Vehicle_Info.CLXXSJ).ToString("yyyy-MM-dd");
            drBase["LXDZ"] = Vehicle_Info.LXDZ;
            drBase["SYR"] = Vehicle_Info.SYR;
            drBase["LXDH"] = Vehicle_Info.LXDH;
            drBase["JCLSH"] = JCLSH;
            drBase["LCBDS"] = Vehicle_Info.LJXSLC;
            drBase["WGJYY"] = Vehicle_Info.WGJYY;
            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            string strAllJYXM = string.Empty;
            foreach (var item in lstJCLSH)
            {
               RESULT_VEHICLE_INFO info = bll.GetModel(item);
               strAllJYXM += info.JYXM;
            }
            if (strAllJYXM.Contains("DC,"))
            {
                drBase["DTDPJYY"] = Vehicle_Info.YCY;
            }

            if (strAllJYXM.Contains("C1,"))
            {
                drBase["DPJYY"] = Vehicle_Info.DPJYY;
            }
            dtBase.Rows.Add(drBase);
            return dtBase;
        }

        /// <summary>
        /// 得到人工检验结果部分
        /// </summary>
        /// <param name="dtResult"></param>
        /// <returns></returns>
        public DataTable GetDataTableRG_Result(DataTable dtResult)
        {
            RESULT_CHASISS_MANUAL_BLL bll = new RESULT_CHASISS_MANUAL_BLL();
            DataRow drResult = dtResult.NewRow();
            drResult["JCLSH"] = JCLSH;
            drResult = SetDataTableDefaultValue(ref dtResult, Pass);

            if (bTestRG)
            {
                RESULT_CHASISS_MANUAL M_RESULT_CHASISS_MANUAL = new RESULT_CHASISS_MANUAL();
                RESULT_CHASISS_MANUAL T_RESULT_CHASISS_MANUAL = new RESULT_CHASISS_MANUAL();
                ModelReflection mR = new ModelReflection();
                for (int i = 0; i < lstJCLSH.Count; i++)
                {
                    T_RESULT_CHASISS_MANUAL = bll.GetModel(lstJCLSH[i]);
                    if (i == 0)
                    {
                        M_RESULT_CHASISS_MANUAL = T_RESULT_CHASISS_MANUAL;
                    }

                    mR.AutoMapping(T_RESULT_CHASISS_MANUAL, M_RESULT_CHASISS_MANUAL);
                }
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.RGJYBHGX))
                {
                    if (M_RESULT_CHASISS_MANUAL.RGJYBHGX.Substring(0, M_RESULT_CHASISS_MANUAL.RGJYBHGX.Length - 1) != ",")
                    {
                        M_RESULT_CHASISS_MANUAL.RGJYBHGX += ",";
                    }

                    string strRGJYBHGX = M_RESULT_CHASISS_MANUAL.RGJYBHGX.Substring(0, M_RESULT_CHASISS_MANUAL.RGJYBHGX.Length - 1);
                    if (strRGJYBHGX.IndexOf(',') > 0)
                    {
                        var items = strRGJYBHGX.Split(',');
                        foreach (var v in items)
                        {
                            if (v != "")
                            {
                                try
                                {
                                    var subItems = v.Split('-');
                                    int iSub = Convert.ToInt32(subItems[0]);
                                    drResult["PD_" + iSub] = Fail;
                                }
                                catch (Exception ex)
                                { 
                                }
                            }
                        }
                    }
                    else
                    {
                        if (!string.IsNullOrEmpty(strRGJYBHGX))
                        {
                            try
                            {
                                var items = strRGJYBHGX.Split('-');
                                int iSub = Convert.ToInt32(items[0]);
                                drResult["PD_" + iSub] = Fail;
                            }
                            catch (Exception ex)
                            { }
                        }
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.DGJYBHGX))
                {
                    string strDGJYBHGX = M_RESULT_CHASISS_MANUAL.DGJYBHGX.Substring(0, M_RESULT_CHASISS_MANUAL.DGJYBHGX.Length - 1);
                    if (strDGJYBHGX.IndexOf(',') > 0)
                    {
                        var items = strDGJYBHGX.Split(',');
                        foreach (var v in items)
                        {
                            var subItems = v.Split('-');
                            int iSub = Convert.ToInt32(subItems[0]);
                            drResult["PD_" + iSub] = Fail;
                        }
                    }
                    else
                    {
                        if (!string.IsNullOrEmpty(strDGJYBHGX))
                        {
                            var items = strDGJYBHGX.Split('-');
                            try
                            {
                                int iSub = Convert.ToInt32(items[0]);
                                drResult["PD_" + iSub] = Fail;
                            }
                            catch (Exception ex)
                            {

                            }
                        }
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.LWCX_PD))
                {
                    if (M_RESULT_CHASISS_MANUAL.LWCX_PD == Nothing)
                    {
                        drResult["PD_LW"] = Nothing;
                    }
                    else
                    {
                        if (Convert.ToInt32(M_RESULT_CHASISS_MANUAL.LWCX_PD) > 0)
                        {
                            if (Convert.ToInt32(M_RESULT_CHASISS_MANUAL.LWCX_PD) == 1)
                            {
                                drResult["PD_LW"] = Pass;
                            }
                            else if (Convert.ToInt32(M_RESULT_CHASISS_MANUAL.LWCX_PD) == 2)
                            {
                                drResult["PD_LW"] = Fail;
                            }
                        }
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.RGJYBJCX))
                {
                    var items = M_RESULT_CHASISS_MANUAL.RGJYBJCX.Split(',');
                    for (int j = 0; j < items.Length; j++)
                    {
                        if (string.IsNullOrEmpty(items[j]) == false && items[j].Contains("-"))
                        {
                            try
                            {
                                var subItems = items[j].Split('-');
                                drResult["PD_" + subItems[0]] = Nothing;
                            }
                            catch (Exception ex)
                            { 
                            }
                        }
                    }
                }

                if (!GetJYXM().Contains("C1"))
                {
                    for (int i = 46; i < 51; i++)
                    {
                        try
                        {
                            drResult["PD_" + i] = Nothing;
                        }
                        catch (Exception ex)
                        { 
                        }
                    }
                }

                if (!GetJYXM().Contains("DC"))
                {
                    for (int i = 42; i < 46; i++)
                    {
                        try
                        {
                            drResult["PD_" + i] = Nothing;
                        }
                        catch (Exception ex)
                        {
                        }
                    }
                }

                #region 检验员意见
                string strJYYYJ = "";
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.BZ_CLWYXJC))
                {
                    strJYYYJ += M_RESULT_CHASISS_MANUAL.BZ_CLWYXJC + ",";
                }
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.BZ_CLTZCSJC))
                {
                    strJYYYJ += M_RESULT_CHASISS_MANUAL.BZ_CLTZCSJC + ",";
                }
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.BZ_CLWGJC))
                {
                    strJYYYJ += M_RESULT_CHASISS_MANUAL.BZ_CLWGJC + ",";
                }
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.BZ_AQZZJC))
                {
                    strJYYYJ += M_RESULT_CHASISS_MANUAL.BZ_AQZZJC + ",";
                }
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.BZ_LWCX))
                {
                    strJYYYJ += M_RESULT_CHASISS_MANUAL.BZ_LWCX + ",";
                }
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.BZ_DTDPJY))
                {
                    strJYYYJ += M_RESULT_CHASISS_MANUAL.BZ_DTDPJY + ",";
                }
                if (!string.IsNullOrEmpty(M_RESULT_CHASISS_MANUAL.BZ_DPBJJC))
                {
                    strJYYYJ += M_RESULT_CHASISS_MANUAL.BZ_DPBJJC + ",";
                }

                if (string.IsNullOrEmpty(strJYYYJ) == false)
                {
                    drResult["RGJY"] = strJYYYJ.Substring(0, strJYYYJ.Length - 1);
                }

                #endregion
            }
            else
            {
                drResult = SetDataTableDefaultValue(ref dtResult, Nothing);
            }

            dtResult.Rows.Add(drResult);
            return dtResult;
        }

        /// <summary>
        /// 绑定安检人工部分
        /// </summary>
        /// <param name="ds"></param>
        /// <returns></returns>
        public DataSet BindReportResource_RG(DataSet ds)
        {
            DataTable dtBase = GetDataTableRG_Base(ds.Tables["dtBase"]);
            DataTable dtZD = GetDataTableRG_Result(ds.Tables["dtPD"]);

            return ds;
        }

        /// <summary>
        /// 根据7258-2017标准去判断灯光是否合格
        /// </summary>
        /// <param name="strValue"></param>
        /// <param name="strPDValue"></param>
        /// <returns></returns>
        private string AJGetLampPDResult(string strValue, string strPDValue)
        {
            string strRet = "";
            if (strValue.Contains("+"))
            {
                strValue = strValue.Replace("+", "");
            }

            if (!string.IsNullOrEmpty(strPDValue.Trim()))
            {
                switch (strPDValue.Trim())
                {
                    case "1"://合格
                        strRet = PassC;
                        break;
                    case "2"://不合格
                        strRet = FailC;
                        break;
                    case "0"://未检
                        strRet = Nothing;
                        break;
                    case "3"://不判定
                        strRet = NoAudit;
                        break;
                    case "-":
                        strRet = Nothing;
                        break;
                    default:
                        strRet = Nothing;
                        break;
                }
            }
            else
            {
                strRet = Nothing;
            }

            return strRet;

        }
        #endregion

        #region 三轮车摩托车
        /// <summary>
        /// 人工部分
        /// </summary>
        /// <param name="dtBase"></param>
        /// <returns></returns>
        public DataTable GetDataTableReportSLMT_Base(DataTable dtBase)
        {
            DataRow drBase = dtBase.NewRow();

            drBase["JCLSH"] = Vehicle_Info.JCLSH;
            drBase["AJLSH"] = Vehicle_Info.AJLSH;
            drBase["YCY"] = Vehicle_Info.YCY;
            drBase["JYRQ"] = Convert.ToDateTime(Vehicle_Info.JCRQ).ToString("yyyy-MM-dd");
            drBase["JYLB"] = Vehicle_Info.JYLB;
            drBase["JYXM"] = Vehicle_Info.JYXM;
            drBase["DLY"] = Vehicle_Info.DLY;
            drBase["JCXH"] = Vehicle_Info.JCXH;
            drBase["HPHM"] = Vehicle_Info.HPHM.Contains("试") ? "" : Vehicle_Info.HPHM;
            drBase["SYR"] = Vehicle_Info.SYR;
            drBase["HPZL"] = Vehicle_Info.HPZL;
            drBase["CLLX"] = Vehicle_Info.CLZL;
            drBase["PPXH"] = Vehicle_Info.PPXH;
            drBase["VIN"] = Vehicle_Info.VIN;
            drBase["FDJH"] = Vehicle_Info.FDJH;
            drBase["RLLB"] = Vehicle_Info.RLLB;
            drBase["CCDJRQ"] = Vehicle_Info.CCDJRQ;
            DateTime d;
            if (DateTime.TryParse(Vehicle_Info.CCRQ, out d))
            {
                drBase["CCRQ"] = Vehicle_Info.CCRQ;
            }
            else
            {
                drBase["CCRQ"] = string.Empty;
            }
            drBase["LCBDS"] = Vehicle_Info.LJXSLC;
            drBase["ZBZL"] = Vehicle_Info.ZBZL;
            if (Vehicle_Info.QZDZ == "一")
            {
                drBase["QZDZ"] = "一灯远光";
            }
            else
            {
                drBase["QZDZ"] = "二灯远光";
            }
            drBase["YGGSNFKT"] = "不能单独调整";
            drBase["ZJCS"] = Vehicle_Info.JCCS;
            //HNK
            drBase["RZBH"] = StationInfo.LICENSE_NO;
            drBase["ADDRESS"] = StationInfo.STATION_ADDRESS;
            drBase["TEL"] = StationInfo.STATION_TEL;
            //外廓尺寸
            RESULT_OVERALLSIZE_BLL overAllSize_Bll = new RESULT_OVERALLSIZE_BLL();
            RESULT_OVERALLSIZE M_RESULT_OVERALLSIZE = new RESULT_OVERALLSIZE();
            RESULT_OVERALLSIZE T_RESULT_OVERALLSIZE = new RESULT_OVERALLSIZE();
            ModelReflection mR = new ModelReflection();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_OVERALLSIZE = overAllSize_Bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_OVERALLSIZE = T_RESULT_OVERALLSIZE;
                }
                mR.AutoMapping(T_RESULT_OVERALLSIZE, M_RESULT_OVERALLSIZE);
            }
            if (!string.IsNullOrEmpty(M_RESULT_OVERALLSIZE.JCLSH))
            {
                drBase["CLWKCC"] = M_RESULT_OVERALLSIZE.ZCSCWKCCCD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCKD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCGD;
                drBase["CLWKCC_PD"] = M_RESULT_OVERALLSIZE.ZCWKCC_PD;
                drBase["WKCCDXCS"] = M_RESULT_OVERALLSIZE.WKCCJCCS;
            }
            //整备质量
            RESULT_KERBMASS_BLL _bll_Kerbmass = new RESULT_KERBMASS_BLL();
            RESULT_KERBMASS _mKerbMass = new RESULT_KERBMASS();
            RESULT_KERBMASS _tKerbMass = new RESULT_KERBMASS();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                _tKerbMass = _bll_Kerbmass.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    _mKerbMass = _tKerbMass;
                }
                mR.AutoMapping(_tKerbMass, _mKerbMass);
            }
            drBase["ZBZLCLZ"] = _mKerbMass.SCZBZL;
            drBase["ZBZLDXCS"] = _mKerbMass.ZBZLJCCS;
            drBase["ZBZL_PD"] = _mKerbMass.ZBZL_PD;

            //路试
            RESULT_ROAD_BLL road_Bll = new RESULT_ROAD_BLL();
            RESULT_ROAD M_RESULT_ROAD = new RESULT_ROAD();
            RESULT_ROAD T_RESULT_ROAD = new RESULT_ROAD();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_ROAD = road_Bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_ROAD = T_RESULT_ROAD;
                }
            }

            if (string.IsNullOrEmpty(M_RESULT_ROAD.JCLSH) == false)
            {
                if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZD_PD) && Convert.ToInt32(M_RESULT_ROAD.LSZD_PD) > 0)
                {
                    string strLSZDXN = "";
                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDJL))
                    {
                        strLSZDXN += string.Format("制动距离(m):{0},", M_RESULT_ROAD.LSZDJL);
                    }

                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.MFDD))
                    {
                        strLSZDXN += string.Format("MFDD(米每秒二次方):{0},", M_RESULT_ROAD.MFDD);
                    }

                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDXTSJ))
                    {
                        strLSZDXN += string.Format("协调时间(s):{0},", M_RESULT_ROAD.LSZDXTSJ);
                    }
                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDPPQK))
                    {
                        if (Convert.ToInt32(M_RESULT_ROAD.LSZDPPQK) == 0)
                        {
                            strLSZDXN += string.Format("协调时间(s):{0},", M_RESULT_ROAD.LSZDXTSJ);
                        }
                        else
                        {
                            strLSZDXN += string.Format("协调时间(s):{0},", M_RESULT_ROAD.LSZDXTSJ);
                        }
                    }

                    int iPD = 20;
                    if (Convert.ToInt32(Vehicle_Info.ZZL) < Convert.ToInt32(Vehicle_Info.ZBZL) * 1.2)
                    {
                        iPD = 15;
                    }

                    strLSZDXN += string.Format("坡度驻车：在{0}%坡度上正反向停车保持5min固定不变。", iPD);

                    drBase["LSJYY"] = M_RESULT_ROAD.LSJYY;
                    drBase["LSZDXN"] = strLSZDXN;
                    drBase["LSZDXN_PD"] = GetPDResult(M_RESULT_ROAD.LSZD_PD);
                    drBase["LSZDXNDXCS"] = M_RESULT_ROAD.LSJCCS;
                }
            }

            dtBase.Rows.Add(drBase);
            return dtBase;
        }

        /// <summary>
        /// 制动
        /// </summary>
        /// <param name="dtZD"></param>
        /// <returns></returns>
        public DataTable GetDataTableReportSLMT_ZD(DataTable dtZD)
        {
            DataRow drZD = SetDataTableDefaultValue(ref dtZD, Nothing);
            RESULT_BRAKE_BLL brake_bll = new RESULT_BRAKE_BLL();
            RESULT_BRAKE M_RESULT_BRAKE = new RESULT_BRAKE();
            RESULT_BRAKE T_RESULT_BRAKE = new RESULT_BRAKE();
            ModelReflection mR = new ModelReflection();
            drZD["JCLSH"] = Vehicle_Info.JCLSH;
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_BRAKE = brake_bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_BRAKE = T_RESULT_BRAKE;
                }
                mR.AutoMapping(T_RESULT_BRAKE, M_RESULT_BRAKE);
            }

            if (!string.IsNullOrEmpty(M_RESULT_BRAKE.JCLSH))
            {
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZLZ))
                {
                    drZD["QLZLH"] = M_RESULT_BRAKE.YZZLZ;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZYLZ))
                {
                    drZD["QLYLH"] = M_RESULT_BRAKE.YZYLZ;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZLZ))
                {
                    drZD["HLZLH"] = M_RESULT_BRAKE.EZZLZ;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZYLZ))
                {
                    drZD["HLYLH"] = M_RESULT_BRAKE.EZYLZ;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZZDZDL))
                {
                    drZD["QLZZDL"] = M_RESULT_BRAKE.YZZZDZDL;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZYZDZDL))
                {
                    drZD["QLYZDL"] = M_RESULT_BRAKE.YZYZDZDL;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZZDZDL))
                {
                    drZD["HLZZDL"] = M_RESULT_BRAKE.EZZZDZDL;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZYZDZDL))
                {
                    drZD["HLYZDL"] = M_RESULT_BRAKE.EZYZDZDL;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZDLV))
                {
                    drZD["QLZDLV"] = M_RESULT_BRAKE.YZZDLV;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZDLV))
                {
                    drZD["HLZDLV"] = M_RESULT_BRAKE.EZZDLV;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZZSZDL))
                {
                    drZD["ZCZZDL"] = M_RESULT_BRAKE.ZZSZDL;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZYSZDL))
                {
                    drZD["ZCYZDL"] = M_RESULT_BRAKE.ZYSZDL;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZCSZDLV))
                {
                    drZD["ZCZDLV"] = M_RESULT_BRAKE.ZCSZDLV;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDSZDJCCS))
                {
                    drZD["ZCDXCS"] = M_RESULT_BRAKE.ZDSZDJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDYZJCCS))
                {
                    drZD["QLDXCS"] = M_RESULT_BRAKE.ZDYZJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDEZJCCS))
                {
                    drZD["HLDXCS"] = M_RESULT_BRAKE.ZDEZJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZDLV_PD))
                {
                    drZD["QL_PD"] = GetPDResult(M_RESULT_BRAKE.YZZDLV_PD);
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZDLV_PD))
                {
                    drZD["HL_PD"] = GetPDResult(M_RESULT_BRAKE.EZZDLV_PD);
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZDLV_PD))
                {
                    drZD["ZC_PD"] = GetPDResult(M_RESULT_BRAKE.SZDLV_PD);
                }
            }

            dtZD.Rows.Add(drZD);
            return dtZD;
        }

        /// <summary>
        /// 灯光
        /// </summary>
        /// <param name="dtDG"></param>
        /// <returns></returns>
        public DataTable GetDataTableReportSLMT_DG(DataTable dtDG)
        {
            DataRow drDG = SetDataTableDefaultValue(ref dtDG, Nothing);
            RESULT_LAMP_BLL lamp_bll = new RESULT_LAMP_BLL();
            RESULT_LAMP M_RESULT_LAMP = new RESULT_LAMP();
            RESULT_LAMP T_RESULT_LAMP = new RESULT_LAMP();
            ModelReflection mR = new ModelReflection();
            drDG["JCLSH"] = Vehicle_Info.JCLSH;
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_LAMP = lamp_bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_LAMP = T_RESULT_LAMP;
                }
                mR.AutoMapping(T_RESULT_LAMP, M_RESULT_LAMP);
            }

            if (string.IsNullOrEmpty(M_RESULT_LAMP.JCLSH) == false)
            {
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGGQ))
                {
                    drDG["ZDYGFGQD"] = M_RESULT_LAMP.ZWDYGGQ;
                }
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGGQ))
                {
                    drDG["YDYGFGQD"] = M_RESULT_LAMP.YWDYGGQ;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGGQ_PD))
                {
                    drDG["ZD_PD"] = GetPDResult(M_RESULT_LAMP.ZWDYGGQ_PD);
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.DGZWDJCCS))
                {
                    drDG["ZDDXCS"] = M_RESULT_LAMP.DGZWDJCCS;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGGQ_PD))
                {
                    drDG["YD_PD"] = GetPDResult(M_RESULT_LAMP.YWDYGGQ_PD);
                }
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.DGYWDJCCS))
                {
                    drDG["YDDXCS"] = M_RESULT_LAMP.DGYWDJCCS;
                }
            }

            dtDG.Rows.Add(drDG);
            return dtDG;

        }

        /// <summary>
        /// 外廓尺寸
        /// </summary>
        /// <param name="dtWKCC"></param>
        /// <returns></returns>
        public DataTable GetDataTableReportSLMT_WKCC(DataTable dtWKCC)
        {
            DataRow drWKCC = SetDataTableDefaultValue(ref dtWKCC, Nothing);
            RESULT_OVERALLSIZE_BLL overAllSize_Bll = new RESULT_OVERALLSIZE_BLL();
            RESULT_OVERALLSIZE M_RESULT_OVERALLSIZE = new RESULT_OVERALLSIZE();
            RESULT_OVERALLSIZE T_RESULT_OVERALLSIZE = new RESULT_OVERALLSIZE();
            ModelReflection mR = new ModelReflection();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_OVERALLSIZE = overAllSize_Bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_OVERALLSIZE = T_RESULT_OVERALLSIZE;
                }
                mR.AutoMapping(T_RESULT_OVERALLSIZE, M_RESULT_OVERALLSIZE);
            }
            drWKCC["JCLSH"] = M_RESULT_OVERALLSIZE.JCLSH;
            if (string.IsNullOrEmpty(M_RESULT_OVERALLSIZE.JCLSH) == false)
            {
                if (!string.IsNullOrEmpty(M_RESULT_OVERALLSIZE.ZCWKCC_PD) && Convert.ToInt32(M_RESULT_OVERALLSIZE.ZCWKCC_PD) > 0)
                {

                    drWKCC["ZCWKCC"] = M_RESULT_OVERALLSIZE.ZCSCWKCCCD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCKD + "×" + M_RESULT_OVERALLSIZE.ZCSCWKCCGD;
                }
                drWKCC["CLWKCC_PD"] = GetPDResult(M_RESULT_OVERALLSIZE.ZCWKCC_PD);
                drWKCC["CLWKCCDXCS"] = M_RESULT_OVERALLSIZE.WKCCJCCS;
            }
            dtWKCC.Rows.Add(drWKCC);
            return dtWKCC;
        }

        /// <summary>
        /// 路试性能
        /// </summary>
        /// <param name="dtLS"></param>
        /// <returns></returns>
        public DataTable GetDataTableReportSLMT_LS(DataTable dtLS)
        {
            DataRow drLS = SetDataTableDefaultValue(ref dtLS, Nothing);
            RESULT_ROAD_BLL road_Bll = new RESULT_ROAD_BLL();
            RESULT_ROAD M_RESULT_ROAD = new RESULT_ROAD();
            RESULT_ROAD T_RESULT_ROAD = new RESULT_ROAD();
            ModelReflection mR = new ModelReflection();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_ROAD = road_Bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_ROAD = T_RESULT_ROAD;
                }
            }

            if (string.IsNullOrEmpty(M_RESULT_ROAD.JCLSH) == false)
            {
                if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZD_PD) && Convert.ToInt32(M_RESULT_ROAD.LSZD_PD) > 0)
                {
                    string strLSZDXN = "";
                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDJL))
                    {
                        strLSZDXN += string.Format("制动距离(m):{0},", M_RESULT_ROAD.LSZDJL);
                    }

                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.MFDD))
                    {
                        strLSZDXN += string.Format("MFDD(米每秒二次方):{0},", M_RESULT_ROAD.MFDD);
                    }

                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDXTSJ))
                    {
                        strLSZDXN += string.Format("协调时间(s):{0},", M_RESULT_ROAD.LSZDXTSJ);
                    }
                    if (!string.IsNullOrEmpty(M_RESULT_ROAD.LSZDPPQK))
                    {
                        if (Convert.ToInt32(M_RESULT_ROAD.LSZDPPQK) == 0)
                        {
                            strLSZDXN += string.Format("协调时间(s):{0},", M_RESULT_ROAD.LSZDXTSJ);
                        }
                        else
                        {
                            strLSZDXN += string.Format("协调时间(s):{0},", M_RESULT_ROAD.LSZDXTSJ);
                        }
                    }

                    int iPD = 20;
                    if (Convert.ToInt32(Vehicle_Info.ZZL) < Convert.ToInt32(Vehicle_Info.ZBZL) * 1.2)
                    {
                        iPD = 15;
                    }

                    strLSZDXN += string.Format("坡度驻车：在{0}%坡度上正反向停车保持5min固定不变。", iPD);

                    drLS["LSJYY"] = M_RESULT_ROAD.LSJYY;
                    drLS["LSZDXN"] = strLSZDXN;
                    drLS["LSZDXN_PD"] = GetPDResult(M_RESULT_ROAD.LSZD_PD);
                    drLS["LSZDXNDXCS"] = M_RESULT_ROAD.LSJCCS;
                }
            }
            dtLS.Rows.Add(drLS);
            return dtLS;
        }

        // HNK 12/13-2017 BEIJING
        private DataTable GetDataTableReport_SLMT_SDS(DataTable dtSDS)
        {
            DataRow drSDS = SetDataTableDefaultValue(ref dtSDS, this.Nothing);
            RESULT_SDS_BLL bll_result_sds = new RESULT_SDS_BLL();
            RESULT_SDS m_result_sds = new RESULT_SDS();
            RESULT_SDS t_result_sds = new RESULT_SDS();
            m_result_sds = bll_result_sds.GetModel(Vehicle_Info.JCLSH);
            drSDS["JCLSH"] = Vehicle_Info.JCLSH;
            ModelReflection mR = new ModelReflection();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                t_result_sds = bll_result_sds.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    m_result_sds = t_result_sds;
                }
                mR.AutoMapping(t_result_sds, m_result_sds);
            }

            if (!string.IsNullOrEmpty(m_result_sds.JCLSH))
            {

                try
                {
                    if (m_result_sds.GDSCO_PD == "3" && m_result_sds.GDSHC_PD == "3")
                    {

                        if (Convert.ToDouble(m_result_sds.DSCO) <2.0 && Convert.ToDouble(m_result_sds.DSHC) < Convert.ToDouble(m_result_sds.DSHCXZ))
                        {
                            m_result_sds.SDS_PD = "1";
                            m_result_sds.DSCO_PD = "1";
                            m_result_sds.DSHC_PD = "1";
                        }
                        else
                        {
                            m_result_sds.SDS_PD = "2";
                        }

                    }
                    else
                    {
                        if (Convert.ToDouble(m_result_sds.DSCO) < 2.0 && Convert.ToDouble(m_result_sds.DSHC) < Convert.ToDouble(m_result_sds.DSHCXZ)
                             && Convert.ToDouble(m_result_sds.GDSCO) < Convert.ToDouble(m_result_sds.GDSCOXZ) && Convert.ToDouble(m_result_sds.GDSHC) < Convert.ToDouble(m_result_sds.GDSHCXZ))
                        {
                            m_result_sds.SDS_PD = "1";
                            m_result_sds.DSCO_PD = "1";
                            m_result_sds.DSHC_PD = "1";
                            m_result_sds.GDSCO_PD = "1";
                            m_result_sds.GDSHC_PD = "1";
                        }
                        else
                        {
                            m_result_sds.SDS_PD = "2";
                        }
                    }
                }
                catch (Exception ex)
                {
                }
                if (!string.IsNullOrEmpty(m_result_sds.DSCO))
                {
                    drSDS["DSCO"] = m_result_sds.DSCO;
                }
                if (!string.IsNullOrEmpty(m_result_sds.DSHC))
                {
                    drSDS["DSHC"] = m_result_sds.DSHC;
                }
                if (!string.IsNullOrEmpty(m_result_sds.GDSCO))
                {
                    drSDS["GDSCO"] = m_result_sds.GDSCO;
                }
                if (!string.IsNullOrEmpty(m_result_sds.GDSHC))
                {
                    drSDS["GDSHC"] = m_result_sds.GDSHC;
                }
                if (!string.IsNullOrEmpty(m_result_sds.DSCO_PD)
                    && string.IsNullOrEmpty(m_result_sds.GDSCO_PD))
                {
                    drSDS["DS_PD"] = int.Parse(m_result_sds.DSCO_PD) & int.Parse(m_result_sds.GDSCO_PD);
                }
                if (!string.IsNullOrEmpty(m_result_sds.DSHC_PD)
                    && !string.IsNullOrEmpty(m_result_sds.GDSHC_PD))
                {
                    drSDS["GDS_PD"] = int.Parse(m_result_sds.DSHC_PD) & int.Parse(m_result_sds.GDSHC_PD);
                }
                if (!string.IsNullOrEmpty(m_result_sds.SDSJCCS))
                {
                    drSDS["JCCS"] = m_result_sds.SDSJCCS;
                }
                if (!string.IsNullOrEmpty(m_result_sds.SDS_PD))
                {
                    drSDS["SDS_PD"] = GetPDResult(m_result_sds.SDS_PD);
                }


            }
            dtSDS.Rows.Add(drSDS);
            return dtSDS;
        }
        /// <summary>
        /// 绑定
        /// </summary>
        /// <param name="ds"></param>
        /// <returns></returns>
        public DataSet BindReportResource_SLMT(DataSet ds)
        {
            DataTable dtBase = GetDataTableReportSLMT_Base(ds.Tables["JBXX"]);
            DataTable dtZD = GetDataTableReportSLMT_ZD(ds.Tables["JYJG"]);
            DataTable dtDG = GetDataTableReportSLMT_DG(ds.Tables["LAMP"]);
            //DataTable dtLS = GetDataTableReportSLMT_LS(ds.Tables["ZDXN"]);
            DataTable dtSDS = GetDataTableReport_SLMT_SDS(ds.Tables["SDS"]);
            //DataTable dtWKCC = GetDataTableReportSLMT_WKCC(ds.Tables["WKCC"]);
            return ds;
        }

        #endregion

        #region 绑定人工检验仪器部分
        /// <summary>
        /// 绑定安检仪器部分
        /// </summary>
        /// <param name="ds"></param>
        /// <returns></returns>
        public DataSet BindReportSource_YQ(DataSet ds)
        {
            DataTable dtBase = GetDataTableYQ_Base(ds.Tables["dtBase"]);
            GetDataTableYQ_YQJY(ds);
            DataTable dtOthers = GetDataTableYQ_Others(ds.Tables["dtOthers"]);

            return ds;
        }

        /// <summary>
        /// 得到安检仪器的其他信息部分
        /// </summary>
        /// <param name="dataTable"></param>
        /// <returns></returns>
        private DataTable GetDataTableYQ_Others(DataTable dtOthers)
        {
            DataRow drOthers = SetDataTableDefaultValue(ref dtOthers, Nothing);

            for (int i = 0; i < lstJCLSH.Count; i++)
            {  //侧滑
                RESULT_SIDESLIP_BLL sideSlip_Bll = new RESULT_SIDESLIP_BLL();
                var sideSlip = sideSlip_Bll.GetModel(lstJCLSH[i]);
                if (!string.IsNullOrEmpty(sideSlip.QQCH_PD))
                {
                    if (Convert.ToInt32(sideSlip.QQCH_PD) > 0)
                    {
                        drOthers["QQCHSCZ"] = sideSlip.QQCHSCZ;

                        if (Vehicle_Info.ZXZLXDH == "2" || Vehicle_Info.ZXZXJXSDH == "0")
                        {
                            drOthers["QQCH_PD"] = Nothing;
                        }
                        else
                        {
                            drOthers["QQCH_PD"] = GetPDResult(sideSlip.QQCH_PD);
                        }
                        drOthers["CHJCCS"] = sideSlip.CHJCCS;
                    }
                }
                //车速表
                RESULT_SPEED_BLL speed_Bll = new RESULT_SPEED_BLL();
                var speed = speed_Bll.GetModel(lstJCLSH[i]);
                if (!string.IsNullOrEmpty(speed.SD_PD))
                {
                    if (Convert.ToInt32(speed.SD_PD) > 0)
                    {
                        drOthers["SCSD"] = speed.SCSD;
                        if (Vehicle_Info.JYLBDH == "01,")
                        {
                            drOthers["SD_PD"] = Nothing;
                        }
                        else
                        {
                            drOthers["SD_PD"] = GetPDResult(speed.SD_PD);
                        }
                        drOthers["SDJCCS"] = speed.SDJCCS;
                    }
                }

                RESULT_ROAD_BLL road_Bll = new RESULT_ROAD_BLL();
                var road = road_Bll.GetModel(lstJCLSH[i]);
                if (!string.IsNullOrEmpty(road.LSZD_PD))
                {
                    if (Convert.ToInt32(road.LSZD_PD) > 0)
                    {
                        string strLSZDXN = "";
                        if (!string.IsNullOrEmpty(road.LSZDCSD) && lstJYXM.Contains("R1"))
                        {
                            drOthers["LS_CSD"] = road.LSZDCSD;
                        }
                        else
                        {
                            drOthers["LS_CSD"] = Nothing;
                        }

                        if (!string.IsNullOrEmpty(road.LSZDJL))
                        {
                            strLSZDXN += string.Format("制动距离(m):{0},", road.LSZDJL);
                        }

                        if (!string.IsNullOrEmpty(road.MFDD) && lstJYXM.Contains("R1"))
                        {
                            drOthers["LS_MFDD"] = road.MFDD;
                            strLSZDXN += string.Format("MFDD(米每秒二次方):{0},", road.MFDD);
                        }
                        else
                        {
                            drOthers["LS_MFDD"] = Nothing;
                        }

                        if (!string.IsNullOrEmpty(road.LSZDXTSJ) && lstJYXM.Contains("R1"))
                        {
                            drOthers["LS_XTSJ"] = road.LSZDXTSJ;
                        }
                        else
                        {
                            drOthers["LS_XTSJ"] = Nothing;
                        }

                        if (!string.IsNullOrEmpty(road.LSZDJL) && lstJYXM.Contains("R1"))
                        {
                            drOthers["LS_ZDJL"] = road.LSZDJL;
                        }
                        else
                        {
                            drOthers["LS_ZDJL"] = Nothing;
                        }

                        if (!string.IsNullOrEmpty(road.LSZDPPQK) && lstJYXM.Contains("R1"))
                        {
                            int iValue = Convert.ToInt32(road.LSZDPPQK);
                            if (iValue == 1)
                            {
                                drOthers["LS_ZDWDX"] = "未跑偏";
                            }
                            else if (iValue == 2)
                            {
                                drOthers["LS_ZDWDX"] = "左跑偏";
                            }
                            else if (iValue == 3)
                            {
                                drOthers["LS_ZDWDX"] = "右跑偏";
                            }
                            else
                            {
                                drOthers["LS_ZDWDX"] = Nothing;
                            }
                        }
                        else
                        {
                            drOthers["LS_ZDWDX"] = Nothing;
                        }

                        int iSFPDZC = 0;
                        string strVehicleId = Vehicle_Info.HPZLDH + Vehicle_Info.HPHM;

                        LOGIN_VEHICLE_INFO_BLL bll = new LOGIN_VEHICLE_INFO_BLL();
                        LOGIN_VEHICLE_INFO[] infos = bll.GetModelList(string.Format(" VEHICLEID = '{0}'", strVehicleId));

                        if (infos.Length > 0)
                        {
                            iSFPDZC = Convert.ToInt32(infos[0].SFPDZC);
                        }

                        iSFPDZC = iSFPDZC == 0 || iSFPDZC == 1 ? iSFPDZC : 0;

                        if (Convert.ToBoolean(iSFPDZC) || (QDZSL == 2 && !IsRoadTest()))
                        {
                            if (!string.IsNullOrEmpty(road.LSZC_PD) && lstJYXM.Contains("R2"))
                            {
                                if (road.LSZC_PD == "0")
                                {
                                    drOthers["LS_ZCPD"] = Nothing;
                                }
                                else if (road.LSZC_PD == "1")
                                {
                                    drOthers["LS_ZCPD"] = "不溜坡";
                                }
                                else if (road.LSZC_PD == "2")
                                {
                                    drOthers["LS_ZCPD"] = "溜坡";
                                }
                                else if (road.LSZC_PD == "3")
                                {
                                    drOthers["LS_ZCPD"] = Nothing;
                                }
                                else
                                {
                                    drOthers["LS_ZCPD"] = Nothing;
                                }
                            }
                            else
                            {
                                drOthers["LS_ZCPD"] = Nothing;
                            }

                        }
                        else
                        {
                            drOthers["LS_ZCPD"] = Nothing;
                        }
                        int iPD = 20;
                        if (Convert.ToInt32(Vehicle_Info.ZZL) < Convert.ToInt32(Vehicle_Info.ZBZL) * 1.2)
                        {
                            iPD = 15;
                        }

                        strLSZDXN += string.Format("坡度驻车：在{0}%坡度上正反向停车保持5min固定不变。", iPD);

                        drOthers["LSJYY"] = road.LSJYY;
                        drOthers["LSZDXN"] = strLSZDXN;
                        drOthers["LSZD_PD"] = GetPDResult(road.LSZD_PD);
                        drOthers["LSJCCS"] = road.LSJCCS;
                    }
                }

                RESULT_OVERALLSIZE_BLL overAllSize_Bll = new RESULT_OVERALLSIZE_BLL();
                RESULT_VEHICLE_INFO_BLL vehicle_bll = new RESULT_VEHICLE_INFO_BLL();
                var overAllSize = overAllSize_Bll.GetModel(lstJCLSH[i]);
                var vehicle = vehicle_bll.GetModel(lstJCLSH[i]);
                if (!string.IsNullOrEmpty(overAllSize.ZCWKCC_PD))
                {
                    if (Convert.ToInt32(overAllSize.ZCWKCC_PD) > 0)
                    {
                        drOthers["ZCWKCC"] = overAllSize.ZCSCWKCCCD + "×" + overAllSize.ZCSCWKCCKD + "×" + overAllSize.ZCSCWKCCGD;
                    }
                    drOthers["ZCWKCC_PD"] = GetPDResult(overAllSize.ZCWKCC_PD);
                    drOthers["ZCWKCCDXCS"] = overAllSize.WKCCJCCS;
                }

                RESULT_KERBMASS_BLL kerbMass_Bll = new RESULT_KERBMASS_BLL();
                var kerbMass = kerbMass_Bll.GetModel(lstJCLSH[i]);

                if (!string.IsNullOrEmpty(kerbMass.ZBZL_PD))
                {
                    if (Convert.ToInt32(kerbMass.ZBZL_PD) > 0)
                    {
                        drOthers["SCZBZL"] = kerbMass.SCZBZL;
                        drOthers["ZBZL_PD"] = GetPDResult(kerbMass.ZBZL_PD);
                        drOthers["ZBZLJCCS"] = kerbMass.ZBZLJCCS;
                    }
                }

                drOthers["RESULT"] = "本报告单检验项目依据：" + GetAJ_GB(Vehicle_Info) + "检验标准及检验方法";
                drOthers["JCLSH"] = lstJCLSH[i];

                if (IsQCLC && IsGC)
                {
                    RESULT_VEHICLE_INFO_BLL vBll = new RESULT_VEHICLE_INFO_BLL();
                    RESULT_BRAKE_BLL bBll = new RESULT_BRAKE_BLL();
                    var vInfo = vBll.GetModel(lstJCLSH[i]);
                    var vZCInfo = bBll.GetModel(vInfo.GLCJCLSH);

                    if (string.IsNullOrEmpty(vZCInfo.ZCZDLV_PD) == false && Convert.ToInt32(vZCInfo.ZCZDLV_PD) > 0)
                    {
                        drOthers["ZCZDResult"] = GetPDResult(vZCInfo.ZCZDLV_PD);
                    }
                    else
                    {
                        drOthers["ZCZDResult"] = Nothing;
                    }
                    drOthers["Remark"] = YQRemark;
                }
                else
                {
                    drOthers["ZCZDResult"] = Nothing;
                    drOthers["Remark"] = Empty;
                }
            }

            dtOthers.Rows.Add(drOthers);
            return dtOthers;
        }

        /// <summary>
        /// 得到安检仪器基础信息部分
        /// </summary>
        /// <param name="dataTable"></param>
        /// <returns></returns>
        public DataTable GetDataTableYQ_Base(DataTable dataTable)
        {
            DataRow drBase = dataTable.NewRow();
            if (string.IsNullOrEmpty(Vehicle_Info.GLCJCLSH.ToString()) == false && IsQCLC)
            {
                YQRemark = "主车号牌:" + Vehicle_Info.GLCHPHM;
            }

            drBase["AJLSH"] = Vehicle_Info.AJLSH;
            drBase["YCY"] = Vehicle_Info.YCY;
            drBase["JCRQ"] = Convert.ToDateTime(Vehicle_Info.JCRQ).ToString("yyyy-MM-dd");
            drBase["JYLB"] = Vehicle_Info.JYLB;
            drBase["JYXM"] = AJGetJYXM(Vehicle_Info.JYXM);
            drBase["DLY"] = Vehicle_Info.DLY;
            drBase["HPHM"] = Vehicle_Info.HPHM.Contains("试") ? "" : Vehicle_Info.HPHM;
            drBase["SYR"] = Vehicle_Info.SYR;
            drBase["HPZL"] = Vehicle_Info.HPZL;
            drBase["CLZL"] = Vehicle_Info.CLZL;
            drBase["PP"] = Vehicle_Info.PP;
            drBase["XH"] = Vehicle_Info.XH;
            drBase["VIN"] = Vehicle_Info.VIN;
            drBase["FDJH"] = Vehicle_Info.FDJH;
            drBase["CCDJRQ"] = Convert.ToDateTime(Vehicle_Info.CCDJRQ).ToString("yyyy-MM-dd");
            DateTime d;
            if (DateTime.TryParse(Vehicle_Info.CCRQ, out d))
            {
                drBase["CCRQ"] = Convert.ToDateTime(Vehicle_Info.CCRQ).ToString("yyyy-MM-dd");
            }
            else
            {
                drBase["CCRQ"] = string.Empty;
            }
            drBase["RLLB"] = Vehicle_Info.RLLB;
            drBase["QDXS"] = Vehicle_Info.QDXS;
            int iLength = Vehicle_Info.ZCZWZ.Length;
            if (Vehicle_Info.ZCZWZ.Substring(iLength - 1, 1) == ",")
            {
                drBase["ZCZWZ"] = Vehicle_Info.ZCZWZ.Substring(0, Vehicle_Info.ZCZWZ.Length - 1);
            }
            else
            {
                drBase["ZCZWZ"] = Vehicle_Info.ZCZWZ;
            }


            drBase["ZXZXJXS"] = Vehicle_Info.ZXZXJXS + "悬架";
            drBase["ZBZL"] = Vehicle_Info.ZBZL;
            drBase["QZDZ"] = Vehicle_Info.QZDZ;
            drBase["YGGSNFKT"] = Vehicle_Info.YGGSNFKT;
            drBase["JCCS"] = Vehicle_Info.JCCS;
            drBase["JCLSH"] = JCLSH;
            if (Vehicle_Info.JCXH != 6)
            {
                drBase["JCXH"] = Vehicle_Info.JCXH;
            }
            else
            {
                drBase["JCXH"] = 2;
            }
            //总轴数
            drBase["ZZS"] = Vehicle_Info.ZZS;

            INSPECTION_STATION_INFO_BLL _bll_station_info = new INSPECTION_STATION_INFO_BLL();
            INSPECTION_STATION_INFO _m_station_info = _bll_station_info.GetModelList()[0];
            //drBase["STATION_NAME"] = _m_station_info.STATION_NAME;
            drBase["STATION_ADDRESS"] = _m_station_info.STATION_ADDRESS;
            drBase["STATION_TEL"] = _m_station_info.STATION_TEL;
            dataTable.Rows.Add(drBase);
            return dataTable;
        }

        private int ReSetJCXH(string JCLSH)
        {
            int i = 0;

            RESULT_VEHICLE_INFO_BLL bll = new RESULT_VEHICLE_INFO_BLL();
            DataTable dt = new DataTable();
            bll.GetModelList(ref dt, string.Format(" LEFT(JCLSH,LEN(JCLSH)-3) = '{0}'", JCLSH.Substring(0, JCLSH.Length - 3)));
            for (int j = dt.Rows.Count - 1; j >= 0; j--)
            {
                if (Convert.ToInt32(dt.Rows[i]["JCXH"]) != 5)
                {
                    return Convert.ToInt32(dt.Rows[i]["JCXH"]);
                }
            }

            return i;
        }

        /// <summary>
        /// 得到安检仪器检验部分
        /// </summary>
        /// <param name="ds"></param>
        public void GetDataTableYQ_YQJY(DataSet ds)
        {
            DataTable dtYZ = ds.Tables["dtYZ"];
            DataTable dtEZ = ds.Tables["dtEZ"];
            DataTable dtSZ = ds.Tables["dtSZ"];
            DataTable dtSIZ = ds.Tables["dtSIZ"];
            DataTable dtWZ = ds.Tables["dtWZ"];
            DataTable dtBrake = ds.Tables["dtBrake"];
            DataTable dtLampZW = ds.Tables["dtLampZW"];
            DataTable dtLampZN = ds.Tables["dtLampZN"];
            DataTable dtLampYW = ds.Tables["dtLampYW"];
            DataTable dtLampYN = ds.Tables["dtLampYN"];

            DataRow drYZ = SetDataTableDefaultValue(ref dtYZ, Nothing);
            DataRow drEZ = SetDataTableDefaultValue(ref dtEZ, Nothing);
            DataRow drSZ = SetDataTableDefaultValue(ref dtSZ, Nothing);
            DataRow drSIZ = SetDataTableDefaultValue(ref dtSIZ, Nothing);
            DataRow drWZ = SetDataTableDefaultValue(ref dtWZ, Nothing);
            DataRow drBrake = SetDataTableDefaultValue(ref dtBrake, Nothing);
            DataRow drLampZW = SetDataTableDefaultValue(ref dtLampZW, Nothing);
            DataRow drLampZN = SetDataTableDefaultValue(ref dtLampZN, Nothing);
            DataRow drLampYW = SetDataTableDefaultValue(ref dtLampYW, Nothing);
            DataRow drLampYN = SetDataTableDefaultValue(ref dtLampYN, Nothing);

            RESULT_BRAKE_BLL brake_bll = new RESULT_BRAKE_BLL();
            RESULT_BRAKE M_RESULT_BRAKE = new RESULT_BRAKE();
            RESULT_BRAKE T_RESULT_BRAKE = new RESULT_BRAKE();
            ModelReflection mR = new ModelReflection();

            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_BRAKE = brake_bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_BRAKE = T_RESULT_BRAKE;
                }

                mR.AutoMapping(T_RESULT_BRAKE, M_RESULT_BRAKE);
            }

            if (string.IsNullOrEmpty(M_RESULT_BRAKE.JCLSH) == false)
            {
                #region 一轴
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTYZZLZ))
                {
                    drYZ["YZZLZ"] = M_RESULT_BRAKE.FHTYZZLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZLZ))
                    {
                        drYZ["YZZLZ"] = M_RESULT_BRAKE.YZZLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTYZYLZ))
                {
                    drYZ["YZYLZ"] = M_RESULT_BRAKE.FHTYZYLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZYLZ))
                    {
                        drYZ["YZYLZ"] = M_RESULT_BRAKE.YZYLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZZDZDL))
                {
                    drYZ["YZZZDZDL"] = M_RESULT_BRAKE.YZZZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZYZDZDL))
                {
                    drYZ["YZYZDZDL"] = M_RESULT_BRAKE.YZYZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZZDCZD))
                {
                    drYZ["YZZZDCZD"] = M_RESULT_BRAKE.YZZZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZYZDCZD))
                {
                    drYZ["YZYZDCZD"] = M_RESULT_BRAKE.YZYZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZDLV_PD))
                {
                    drYZ["YZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZZDLV_PD);
                    drYZ["YZZDLV"] = M_RESULT_BRAKE.YZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZBPHLV_PD))
                {
                    drYZ["YZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZBPHLV_PD);
                    drYZ["YZBPHLV"] = M_RESULT_BRAKE.YZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZSZDL))
                {
                    drYZ["YZSZDL"] = M_RESULT_BRAKE.YZSZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZJZZZ))
                {
                    drYZ["YZJZZZ"] = M_RESULT_BRAKE.YZJZZZ;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZJZZDLV_PD))
                {
                    drYZ["YZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZJZZDLV_PD);
                    drYZ["YZJZZDLV"] = M_RESULT_BRAKE.YZJZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZJZBPHLV_PD))
                {
                    drYZ["YZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.YZJZBPHLV_PD);
                    drYZ["YZJZBPHLV"] = M_RESULT_BRAKE.YZJZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDYZJCCS))
                {
                    drYZ["ZDYZJCCS"] = M_RESULT_BRAKE.ZDYZJCCS;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZDZ_PD))
                {
                    drYZ["YZZPD"] = GetPDResult(M_RESULT_BRAKE.YZZDZ_PD);
                }
                #endregion

                #region 二轴
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTEZZLZ))
                {
                    drEZ["EZZLZ"] = M_RESULT_BRAKE.FHTEZZLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZLZ))
                    {
                        drEZ["EZZLZ"] = M_RESULT_BRAKE.EZZLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTEZYLZ))
                {
                    drEZ["EZYLZ"] = M_RESULT_BRAKE.FHTEZYLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZYLZ))
                    {
                        drEZ["EZYLZ"] = M_RESULT_BRAKE.EZYLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZZDZDL))
                {
                    drEZ["EZZZDZDL"] = M_RESULT_BRAKE.EZZZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZYZDZDL))
                {
                    drEZ["EZYZDZDL"] = M_RESULT_BRAKE.EZYZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZZDCZD))
                {
                    drEZ["EZZZDCZD"] = M_RESULT_BRAKE.EZZZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZYZDCZD))
                {
                    drEZ["EZYZDCZD"] = M_RESULT_BRAKE.EZYZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZDLV_PD))
                {
                    drEZ["EZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZZDLV_PD);
                    drEZ["EZZDLV"] = M_RESULT_BRAKE.EZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZBPHLV_PD))
                {
                    drEZ["EZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZBPHLV_PD);
                    drEZ["EZBPHLV"] = M_RESULT_BRAKE.EZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZSZDL))
                {
                    drEZ["EZSZDL"] = M_RESULT_BRAKE.EZSZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZJZZZ))
                {
                    drEZ["EZJZZZ"] = M_RESULT_BRAKE.EZJZZZ;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZJZZDLV_PD))
                {
                    drEZ["EZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZJZZDLV_PD);
                    drEZ["EZJZZDLV"] = M_RESULT_BRAKE.EZJZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZJZBPHLV_PD))
                {
                    drEZ["EZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.EZJZBPHLV_PD);
                    drEZ["EZJZBPHLV"] = M_RESULT_BRAKE.EZJZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDEZJCCS))
                {
                    drEZ["ZDEZJCCS"] = M_RESULT_BRAKE.ZDEZJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZDZ_PD))
                {
                    drEZ["EZZPD"] = GetPDResult(M_RESULT_BRAKE.EZZDZ_PD);
                }
                #endregion

                #region 三轴
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTSZZLZ))
                {
                    drSZ["SZZLZ"] = M_RESULT_BRAKE.FHTSZZLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZZLZ))
                    {
                        drSZ["SZZLZ"] = M_RESULT_BRAKE.SZZLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTSZYLZ))
                {
                    drSZ["SZYLZ"] = M_RESULT_BRAKE.FHTSZYLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZYLZ))
                    {
                        drSZ["SZYLZ"] = M_RESULT_BRAKE.SZYLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZZZDZDL))
                {
                    drSZ["SZZZDZDL"] = M_RESULT_BRAKE.SZZZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZYZDZDL))
                {
                    drSZ["SZYZDZDL"] = M_RESULT_BRAKE.SZYZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZZZDCZD))
                {
                    drSZ["SZZZDCZD"] = M_RESULT_BRAKE.SZZZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZYZDCZD))
                {
                    drSZ["SZYZDCZD"] = M_RESULT_BRAKE.SZYZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZZDLV_PD))
                {
                    drSZ["SZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZZDLV_PD);
                    drSZ["SZZDLV"] = M_RESULT_BRAKE.SZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZBPHLV_PD))
                {
                    drSZ["SZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZBPHLV_PD);
                    drSZ["SZBPHLV"] = M_RESULT_BRAKE.SZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZSZDL))
                {
                    drSZ["SZSZDL"] = M_RESULT_BRAKE.SZSZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZJZZZ))
                {
                    drSZ["SZJZZZ"] = M_RESULT_BRAKE.SZJZZZ;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZJZZDLV_PD))
                {
                    drSZ["SZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZJZZDLV_PD);
                    drSZ["SZJZZDLV"] = M_RESULT_BRAKE.SZJZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZJZBPHLV_PD))
                {
                    drSZ["SZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZJZBPHLV_PD);
                    drSZ["SZJZBPHLV"] = M_RESULT_BRAKE.SZJZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDSZJCCS))
                {
                    drSZ["ZDSZJCCS"] = M_RESULT_BRAKE.ZDSZJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZZDZ_PD))
                {
                    drSZ["SZZPD"] = GetPDResult(M_RESULT_BRAKE.SZZDZ_PD);
                }
                #endregion

                #region 四轴
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTSIZZLZ))
                {
                    drSIZ["SIZZLZ"] = M_RESULT_BRAKE.FHTSIZZLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZZLZ))
                    {
                        drSIZ["SIZZLZ"] = M_RESULT_BRAKE.SIZZLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTSIZYLZ))
                {
                    drSIZ["SIZYLZ"] = M_RESULT_BRAKE.FHTSIZYLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZYLZ))
                    {
                        drSIZ["SIZYLZ"] = M_RESULT_BRAKE.SIZYLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZZZDZDL))
                {
                    drSIZ["SIZZZDZDL"] = M_RESULT_BRAKE.SIZZZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZYZDZDL))
                {
                    drSIZ["SIZYZDZDL"] = M_RESULT_BRAKE.SIZYZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZZZDCZD))
                {
                    drSIZ["SIZZZDCZD"] = M_RESULT_BRAKE.SIZZZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZYZDCZD))
                {
                    drSIZ["SIZYZDCZD"] = M_RESULT_BRAKE.SIZYZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZZDLV_PD))
                {
                    drSIZ["SIZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SIZZDLV_PD);
                    drSIZ["SIZZDLV"] = M_RESULT_BRAKE.SIZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZBPHLV_PD))
                {
                    drSIZ["SIZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.SIZBPHLV_PD);
                    drSIZ["SIZBPHLV"] = M_RESULT_BRAKE.SIZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZSZDL))
                {
                    drSIZ["SIZSZDL"] = M_RESULT_BRAKE.SIZSZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZJZZZ))
                {
                    drSIZ["SIZJZZZ"] = M_RESULT_BRAKE.SIZJZZZ;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZJZZDLV_PD))
                {
                    drSIZ["SIZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SIZJZZDLV_PD);
                    drSIZ["SIZJZZDLV"] = M_RESULT_BRAKE.SIZJZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZJZBPHLV_PD))
                {
                    drSIZ["SIZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.SIZJZBPHLV_PD);
                    drSIZ["SIZJZBPHLV"] = M_RESULT_BRAKE.SIZJZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDSIZJCCS))
                {
                    drSIZ["ZDSIZJCCS"] = M_RESULT_BRAKE.ZDSIZJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SIZZDZ_PD))
                {
                    drSIZ["SIZZPD"] = GetPDResult(M_RESULT_BRAKE.SIZZDZ_PD);
                }
                #endregion

                #region 五轴
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTWZZLZ))
                {
                    drWZ["WZZLZ"] = M_RESULT_BRAKE.FHTWZZLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZZLZ))
                    {
                        drWZ["WZZLZ"] = M_RESULT_BRAKE.WZZLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.FHTWZYLZ))
                {
                    drWZ["WZYLZ"] = M_RESULT_BRAKE.FHTWZYLZ;
                }
                else
                {
                    if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZYLZ))
                    {
                        drWZ["WZYLZ"] = M_RESULT_BRAKE.WZYLZ;
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZZZDZDL))
                {
                    drWZ["WZZZDZDL"] = M_RESULT_BRAKE.WZZZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZYZDZDL))
                {
                    drWZ["WZYZDZDL"] = M_RESULT_BRAKE.WZYZDZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZZZDCZD))
                {
                    drWZ["WZZZDCZD"] = M_RESULT_BRAKE.WZZZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZYZDCZD))
                {
                    drWZ["WZYZDCZD"] = M_RESULT_BRAKE.WZYZDCZD;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZZDLV_PD))
                {
                    drWZ["WZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.WZZDLV_PD);
                    drWZ["WZZDLV"] = M_RESULT_BRAKE.WZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZBPHLV_PD))
                {
                    drWZ["WZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.WZBPHLV_PD);
                    drWZ["WZBPHLV"] = M_RESULT_BRAKE.WZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZSZDL))
                {
                    drWZ["WZSZDL"] = M_RESULT_BRAKE.WZSZDL;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZJZZZ))
                {
                    drWZ["WZJZZZ"] = M_RESULT_BRAKE.WZJZZZ;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZJZZDLV_PD))
                {
                    drWZ["WZJZZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.WZJZZDLV_PD);
                    drWZ["WZJZZDLV"] = M_RESULT_BRAKE.WZJZZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZJZBPHLV_PD))
                {
                    drWZ["WZJZBPHLV_PD"] = GetPDResult(M_RESULT_BRAKE.WZJZBPHLV_PD);
                    drWZ["WZJZBPHLV"] = M_RESULT_BRAKE.WZJZBPHLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDWZJCCS))
                {
                    drWZ["ZDWZJCCS"] = M_RESULT_BRAKE.ZDWZJCCS;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.WZZDZ_PD))
                {
                    drWZ["WZZPD"] = GetPDResult(M_RESULT_BRAKE.WZZDZ_PD);
                }
                #endregion

                #region 整车
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZCZDLV_PD))
                {
                    drBrake["ZCZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.ZCZDLV_PD);
                    drBrake["ZCZDLV"] = M_RESULT_BRAKE.ZCZDLV;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZCZZ))
                {
                    drBrake["ZCZZ"] = M_RESULT_BRAKE.ZCZZ;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZCZDL))
                {
                    drBrake["ZCZDL"] = M_RESULT_BRAKE.ZCZDL;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDZCJCCS))
                {
                    drBrake["ZDZCJCCS"] = M_RESULT_BRAKE.ZDZCJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.SZDLV_PD))
                {
                    drBrake["SZDLV_PD"] = GetPDResult(M_RESULT_BRAKE.SZDLV_PD);
                    drBrake["ZSZDL"] = M_RESULT_BRAKE.ZSZDL;
                    drBrake["ZCSZDLV"] = M_RESULT_BRAKE.ZCSZDLV;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.ZDSZDJCCS))
                {
                    drBrake["ZDSZDJCCS"] = M_RESULT_BRAKE.ZDSZDJCCS;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZZDTLH))
                {
                    drBrake["YZZDTLH"] = M_RESULT_BRAKE.YZZDTLH;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.YZYDTLH))
                {
                    drBrake["YZYDTLH"] = M_RESULT_BRAKE.YZYDTLH;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZZDTLH))
                {
                    drBrake["EZZDTLH"] = M_RESULT_BRAKE.EZZDTLH;
                }

                if (!string.IsNullOrEmpty(M_RESULT_BRAKE.EZYDTLH))
                {
                    drBrake["EZYDTLH"] = M_RESULT_BRAKE.EZYDTLH;
                }

                if (string.IsNullOrEmpty(M_RESULT_BRAKE.QCLCZC_PD) == false && Convert.ToInt32(M_RESULT_BRAKE.QCLCZC_PD) > 0)
                {
                    YQRemark += "                汽车列车整车制动率：" + M_RESULT_BRAKE.QCLCZCZDLV;
                }
                #endregion
            }

            RESULT_LAMP_BLL lamp_bll = new RESULT_LAMP_BLL();
            RESULT_LAMP M_RESULT_LAMP = new RESULT_LAMP();
            RESULT_LAMP T_RESULT_LAMP = new RESULT_LAMP();
            for (int i = 0; i < lstJCLSH.Count; i++)
            {
                T_RESULT_LAMP = lamp_bll.GetModel(lstJCLSH[i]);
                if (i == 0)
                {
                    M_RESULT_LAMP = T_RESULT_LAMP;
                }
                mR.AutoMapping(T_RESULT_LAMP, M_RESULT_LAMP);
            }

            #region 大灯

            if (string.IsNullOrEmpty(M_RESULT_LAMP.JCLSH) == false)
            {
                //左外
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGGQ_PD) && M_RESULT_LAMP.ZWDYGGQ_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.ZWDYGGQ_PD) > 0)
                    {
                        drLampZW["ZWDYGGQ"] = M_RESULT_LAMP.ZWDYGGQ;
                        drLampZW["ZWDYGGQ_PD"] = GetPDResult(M_RESULT_LAMP.ZWDYGGQ_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGCZPY_PD) && M_RESULT_LAMP.ZWDYGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.ZWDYGCZPY_PD) > 0)
                    {
                        drLampZW["ZWDYGCZPYL"] = M_RESULT_LAMP.ZWDYGCZPYL;
                        drLampZW["ZWDYGCZPY"] = M_RESULT_LAMP.ZWDYGCZPY;
                        drLampZW["ZWDYGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.ZWDYGCZPY_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDJGCZPY_PD) && M_RESULT_LAMP.ZWDJGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.ZWDJGCZPY_PD) > 0)
                    {
                        drLampZW["ZWDJGCZPYL"] = M_RESULT_LAMP.ZWDJGCZPYL;
                        drLampZW["ZWDJGCZPY"] = M_RESULT_LAMP.ZWDJGCZPY;
                        drLampZW["ZWDJGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.ZWDJGCZPY_PD);

                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDYGDG))
                {
                    drLampZW["ZWDYGDG"] = M_RESULT_LAMP.ZWDYGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDJGDG))
                {
                    drLampZW["ZWDJGDG"] = M_RESULT_LAMP.ZWDJGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.DGZWDJCCS))
                {
                    drLampZW["DGZWDJCCS"] = M_RESULT_LAMP.DGZWDJCCS;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZWDZ_PD))
                {
                    drLampZW["ZWZPD"] = GetPDResult(M_RESULT_LAMP.ZWDZ_PD);
                }
                //左内
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGGQ_PD) && M_RESULT_LAMP.ZNDYGGQ_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.ZNDYGGQ_PD) > 0)
                    {
                        drLampZN["ZNDYGGQ"] = M_RESULT_LAMP.ZNDYGGQ;
                        drLampZN["ZNDYGGQ_PD"] = GetPDResult(M_RESULT_LAMP.ZNDYGGQ_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGCZPY_PD) && M_RESULT_LAMP.ZNDYGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.ZNDYGCZPY_PD) > 0)
                    {
                        drLampZN["ZNDYGCZPYL"] = M_RESULT_LAMP.ZNDYGCZPYL;
                        drLampZN["ZNDYGCZPY"] = M_RESULT_LAMP.ZNDYGCZPY;
                        drLampZN["ZNDYGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.ZNDYGCZPY_PD);
                    }
                }


                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDJGCZPY_PD) && M_RESULT_LAMP.ZNDJGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.ZNDJGCZPY_PD) > 0)
                    {
                        drLampZN["ZNDJGCZPYL"] = M_RESULT_LAMP.ZNDJGCZPYL;
                        drLampZN["ZNDJGCZPY"] = M_RESULT_LAMP.ZNDJGCZPY;
                        drLampZN["ZNDJGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.ZNDJGCZPY_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDYGDG))
                {
                    drLampZN["ZNDYGDG"] = M_RESULT_LAMP.ZNDYGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDJGDG))
                {
                    drLampZN["ZNDJGDG"] = M_RESULT_LAMP.ZNDJGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.DGZNDJCCS))
                {
                    drLampZN["DGZNDJCCS"] = M_RESULT_LAMP.DGZNDJCCS;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.ZNDZ_PD))
                {
                    drLampZN["ZNZPD"] = GetPDResult(M_RESULT_LAMP.ZNDZ_PD);
                }
                //右外
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGGQ_PD) && M_RESULT_LAMP.YWDYGGQ_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.YWDYGGQ_PD) > 0)
                    {
                        drLampYW["YWDYGGQ"] = M_RESULT_LAMP.YWDYGGQ;
                        drLampYW["YWDYGGQ_PD"] = GetPDResult(M_RESULT_LAMP.YWDYGGQ_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGCZPY_PD) && M_RESULT_LAMP.YWDYGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.YWDYGCZPY_PD) > 0)
                    {
                        drLampYW["YWDYGCZPYL"] = M_RESULT_LAMP.YWDYGCZPYL;
                        drLampYW["YWDYGCZPY"] = M_RESULT_LAMP.YWDYGCZPY;
                        drLampYW["YWDYGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.YWDYGCZPY_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDJGCZPY_PD) && M_RESULT_LAMP.YWDJGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.YWDJGCZPY_PD) > 0)
                    {
                        drLampYW["YWDJGCZPYL"] = M_RESULT_LAMP.YWDJGCZPYL;
                        drLampYW["YWDJGCZPY"] = M_RESULT_LAMP.YWDJGCZPY;
                        drLampYW["YWDJGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.YWDJGCZPY_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDYGDG))
                {
                    drLampYW["YWDYGDG"] = M_RESULT_LAMP.YWDYGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDJGDG))
                {
                    drLampYW["YWDJGDG"] = M_RESULT_LAMP.YWDJGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.DGYWDJCCS))
                {
                    drLampYW["DGYWDJCCS"] = M_RESULT_LAMP.DGYWDJCCS;
                }
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YWDZ_PD))
                {
                    drLampYW["YWZPD"] = GetPDResult(M_RESULT_LAMP.YWDZ_PD);
                }

                //右内
                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YNDYGGQ_PD) && M_RESULT_LAMP.YNDYGGQ_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.YNDYGGQ_PD) > 0)
                    {
                        drLampYN["YNDYGGQ"] = M_RESULT_LAMP.YNDYGGQ;
                        drLampYN["YNDYGGQ_PD"] = GetPDResult(M_RESULT_LAMP.YNDYGGQ_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YNDYGCZPY_PD) && M_RESULT_LAMP.YNDYGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.YNDYGCZPY_PD) > 0)
                    {
                        drLampYN["YNDYGCZPYL"] = M_RESULT_LAMP.YNDYGCZPYL;
                        drLampYN["YNDYGCZPY"] = M_RESULT_LAMP.YNDYGCZPY;
                        drLampYN["YNDYGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.YNDYGCZPY_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YNDJGCZPY_PD) && M_RESULT_LAMP.YNDJGCZPY_PD != Nothing)
                {
                    if (Convert.ToInt32(M_RESULT_LAMP.YNDJGCZPY_PD) > 0)
                    {
                        drLampYN["YNDJGCZPYL"] = M_RESULT_LAMP.YNDJGCZPYL;
                        drLampYN["YNDJGCZPY"] = M_RESULT_LAMP.YNDJGCZPY;
                        drLampYN["YNDJGCZPY_PD"] = GetPDResult(M_RESULT_LAMP.YNDJGCZPY_PD);
                    }
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YNDYGDG))
                {
                    drLampYN["YNDYGDG"] = M_RESULT_LAMP.YNDYGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YNDJGDG))
                {
                    drLampYN["YNDJGDG"] = M_RESULT_LAMP.YNDJGDG;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.DGYNDJCCS))
                {
                    drLampYN["DGYNDJCCS"] = M_RESULT_LAMP.DGYNDJCCS;
                }

                if (!string.IsNullOrEmpty(M_RESULT_LAMP.YNDZ_PD))
                {
                    drLampYN["YNZPD"] = GetPDResult(M_RESULT_LAMP.YNDZ_PD);
                }
            }
            #endregion

            dtYZ.Rows.Add(drYZ);
            dtEZ.Rows.Add(drEZ);
            dtSZ.Rows.Add(drSZ);
            dtSIZ.Rows.Add(drSIZ);
            dtWZ.Rows.Add(drWZ);
            dtBrake.Rows.Add(drBrake);
            dtLampZW.Rows.Add(drLampZW);
            dtLampZN.Rows.Add(drLampZN);
            dtLampYW.Rows.Add(drLampYW);
            dtLampYN.Rows.Add(drLampYN);
        }
        #endregion

        /// <summary>
        /// 得到安检合格报告单
        /// </summary>
        /// <param name="strPD1"></param>
        /// <param name="strPD2"></param>
        /// <returns></returns>
        private string GetAJResult_YQ(string strPD1, string strPD2)
        {
            string strRet = "";
            if (strPD1 == "合格" && strPD2 == "合格")
            {
                strRet = "合格";
            }

            if (strPD1 == "合格" && strPD2 == "不合格")
            {
                strRet = "不合格";
            }

            if (strPD1 == "合格" && strPD2 == Nothing)
            {
                strRet = "合格";
            }

            if (strPD1 == "不合格" || strPD1 == "不合格")
            {
                strRet = "不合格";
            }

            if (strPD1 == Nothing && strPD2 == "不合格")
            {
                strRet = "不合格";
            }

            if (strPD1 == Nothing && strPD2 == "合格")
            {
                strRet = "合格";
            }


            return strRet;
        }

        /// <summary>
        /// 得到人工检验部分，那些是屏蔽项
        /// </summary>
        /// <returns></returns>
        private Dictionary<string, string> GetAllItemsByRG()
        {
            Dictionary<string, string> dic = new Dictionary<string, string>();
            for (int i = 1; i < 51; i++)
            {
                dic.Add("PD_" + i, Pass);
            }
            dic.Add("PD_LW", Pass);

            //载客车辆
            if (IsKC)
            {
                //非营运车、小型、微型客车
                if (IsXXKCAndWXKC && !IsYYC)
                {
                    dic["PD_6"] = Nothing;    //外廓尺寸
                    dic["PD_7"] = Nothing;    //轴距
                    dic["PD_8"] = Nothing;    //整备质量
                    dic["PD_11"] = Nothing;   //栏板高度
                    dic["PD_12"] = Nothing;   //后轴钢板弹簧片数
                    dic["PD_13"] = Nothing;   //客车应急出口
                    dic["PD_14"] = Nothing;   //客车乘客通道和引道
                    dic["PD_15"] = Nothing;   //货厢

                    dic["PD_24"] = Nothing;   //灭火器
                    dic["PD_25"] = Nothing;   //行驶记录装置
                    dic["PD_26"] = Nothing;   //车身反光标示
                    dic["PD_27"] = Nothing;   //车辆尾部标示板
                    dic["PD_28"] = Nothing;   //侧后防护装置
                    dic["PD_29"] = Nothing;   //应急锤
                    dic["PD_30"] = Nothing;   //应急箱
                    dic["PD_31"] = Nothing;   //限速功能或限速装置
                    dic["PD_32"] = Nothing;   //防抱死制动装置
                    dic["PD_33"] = Nothing;   //辅助制动装置
                    dic["PD_34"] = Nothing;   //盘式制动器
                    dic["PD_35"] = Nothing;   //紧急切断装置
                    dic["PD_36"] = Nothing;   //发动机舱自动灭火装置
                    dic["PD_37"] = Nothing;   //手动机械断电开关
                    dic["PD_38"] = Nothing;   //副制动踏板
                    dic["PD_39"] = Nothing;   //校车标志灯和校车停车指示标志牌
                    dic["PD_40"] = Nothing;   //危险货物运输车标志

                    dic["PD_41"] = Nothing;   //肢体残疾病人操纵辅助装置  o


                    //"o"表示面包车<7座,年限未超过10的车辆
                    if (CYS < 7 && DateTime.Compare(DateTime.Now, Convert.ToDateTime(Vehicle_Info.CCDJRQ).AddYears(10)) < 0)
                    {
                        dic["PD_42"] = Nothing;  //转向系  o
                        dic["PD_43"] = Nothing;  //传动系  o
                        dic["PD_44"] = Nothing;  //制动系  o
                        dic["PD_45"] = Nothing;  //仪表和指示器  o
                        dic["PD_46"] = Nothing;  //转向系部件  o
                        dic["PD_47"] = Nothing;  //传动系部件  o
                        dic["PD_48"] = Nothing;  //行驶系部件  o
                        dic["PD_49"] = Nothing;  //制动系部件  o
                        dic["PD_50"] = Nothing;  //其他部件  o
                    }
                }
                else
                {
                    if (Vehicle_Info.JYLBDH.Contains("02"))
                    {
                        dic["PD_6"] = Nothing;  //外廓尺寸  o  
                    }

                    dic["PD_7"] = Nothing;   //轴距
                    dic["PD_8"] = Nothing;   //整备质量
                    dic["PD_11"] = Nothing;   //栏板高度
                    dic["PD_12"] = Nothing;   //后轴钢板弹簧片数
                    dic["PD_13"] = Nothing;   //客车应急出口  o
                    dic["PD_14"] = Nothing;   //客车乘客通道和引道  o
                    dic["PD_15"] = Nothing;   //货厢

                    dic["PD_24"] = Nothing;   //灭火器  o   

                    dic["PD_25"] = Nothing;   //行驶记录装置  o
                    dic["PD_26"] = Nothing;   //车身反光标示
                    dic["PD_27"] = Nothing;   //车辆尾部标示板
                    dic["PD_28"] = Nothing;   //侧后防护装置
                    dic["PD_29"] = Nothing;   //应急锤  o
                    dic["PD_30"] = Nothing;   //应急箱  o
                    dic["PD_31"] = Nothing;   //限速功能或限速装置  o
                    dic["PD_32"] = Nothing;   //防抱死制动装置  o
                    dic["PD_33"] = Nothing;   //辅助制动装置  o
                    dic["PD_34"] = Nothing;   //盘式制动器  o
                    dic["PD_35"] = Nothing;   //紧急切断装置
                    dic["PD_36"] = Nothing;   //发动机舱自动灭火装置  o
                    dic["PD_37"] = Nothing;   //手动机械断电开关  o
                    dic["PD_38"] = Nothing;   //副制动踏板  o
                    dic["PD_39"] = Nothing;   //校车标志灯和校车停车指示标志牌  o
                    dic["PD_40"] = Nothing;   //危险货物运输车标志	
                    dic["PD_41"] = Nothing;   //肢体残疾病人操纵辅助装置
                }
            }
            else if (IsHC && IsZYC)//货车、专业作业车
            {
                if (Vehicle_Info.JYLBDH.Contains("02"))//汽车（三轮汽车除外）、挂车不超过±1%或±50mm
                {
                    dic["PD_6"] = Nothing;    //外廓尺寸  o    (a) 表3中重中型货车、专项作业车、挂车使用外廓尺寸自动测量装置的要求；)
                }

                dic["PD_11"] = Nothing;  //栏板高度  o
                dic["PD_13"] = Nothing;  //客车应急出口  
                dic["PD_14"] = Nothing;  //客车乘客通道和引道  
                dic["PD_15"] = Nothing;  //货厢  o

                dic["PD_24"] = Nothing;  //灭火器  o
                dic["PD_25"] = Nothing;  //行驶记录装置  o

                dic["PD_27"] = Nothing;  //车辆尾部标示板  o
                dic["PD_28"] = Nothing;  //侧后防护装置  o
                dic["PD_29"] = Nothing;  //应急锤  
                dic["PD_30"] = Nothing;  //应急箱  

                dic["PD_31"] = Nothing;  //限速功能或限速装置  o
                dic["PD_32"] = Nothing;  //防抱死制动装置  o
                dic["PD_33"] = Nothing;  //辅助制动装置  o
                dic["PD_34"] = Nothing;  //盘式制动器  o
                dic["PD_35"] = Nothing;  //紧急切断装置  o
                dic["PD_36"] = Nothing;  //发动机舱自动灭火装置  
                dic["PD_37"] = Nothing;  //手动机械断电开关  
                dic["PD_38"] = Nothing;  //副制动踏板  o
                dic["PD_39"] = Nothing;  //校车标志灯和校车停车指示标志牌  
                dic["PD_40"] = Nothing;  //危险货物运输车标志  o	
                dic["PD_41"] = Nothing;  //肢体残疾病人操纵辅助装置
            }
            else if (IsHC)
            {
                dic["PD_4"] = Nothing;  //发动机号码
                dic["PD_10"] = Nothing;  //额定载客人数
                dic["PD_11"] = Nothing;  //栏板高度  o

                dic["PD_13"] = Nothing;  //客车应急出口  
                dic["PD_14"] = Nothing;  //客车乘客通道和引道
                dic["PD_15"] = Nothing;  //货厢  o

                dic["PD_22"] = Nothing;  //汽车安全带
                dic["PD_23"] = Nothing;  //机动车用三角警告牌
                dic["PD_24"] = Nothing;  //灭火器
                dic["PD_25"] = Nothing;  //行驶记录装置

                dic["PD_27"] = Nothing;  //车辆尾部标示板  o
                dic["PD_28"] = Nothing;  //侧后防护装置  o
                dic["PD_29"] = Nothing;  //应急锤  
                dic["PD_30"] = Nothing;  //应急箱  
                dic["PD_31"] = Nothing;  //限速功能或限速装置  
                dic["PD_32"] = Nothing;  //防抱死制动装置  o

                dic["PD_33"] = Nothing;  //辅助制动装置
                dic["PD_34"] = Nothing;  //盘式制动器  
                dic["PD_35"] = Nothing;  //紧急切断装置  o
                dic["PD_36"] = Nothing;  //发动机舱自动灭火装置
                dic["PD_37"] = Nothing;  //手动机械断电开关  
                dic["PD_38"] = Nothing;  //副制动踏板  
                dic["PD_39"] = Nothing;  //校车标志灯和校车停车指示标志牌  
                dic["PD_40"] = Nothing;  //危险货物运输车标志	
                dic["PD_41"] = Nothing;  //肢体残疾病人操纵辅助装置  o

                dic["PD_42"] = Nothing;  //转向系  
                dic["PD_43"] = Nothing;  //传动系  
                dic["PD_44"] = Nothing;  //制动系  
                dic["PD_45"] = Nothing;  //仪表和指示器 
            }
            else if (IsQCLC)
            {
                if (Vehicle_Info.JYLBDH.Contains("02"))//汽车（三轮汽车除外）、挂车不超过±1%或±50mm
                {
                    dic["PD_6"] = Nothing;    //外廓尺寸  o    (a) 表3中重中型货车、专项作业车、挂车使用外廓尺寸自动测量装置的要求；)
                }

                dic["PD_7"] = Nothing;  //轴距
                dic["PD_9"] = Nothing;  //额定载客人数
                dic["PD_11"] = Nothing;   //栏板高度
                dic["PD_12"] = Nothing;   //后轴钢板弹簧片数
                dic["PD_13"] = Nothing;   //客车应急出口
                dic["PD_14"] = Nothing;   //客车乘客通道和引道
                dic["PD_21"] = Nothing;   //加装、改装灯具
                dic["PD_22"] = Nothing;   //汽车安全带
                dic["PD_17"] = Nothing;   //外观标示、标志和标牌  o
                dic["PD_24"] = Nothing;   //灭火器
                dic["PD_25"] = Nothing;   //行驶记录装置
                dic["PD_27"] = Nothing;   //车辆尾部标示板
                dic["PD_28"] = Nothing;   //侧后防护装置
                dic["PD_29"] = Nothing;   //应急锤
                dic["PD_30"] = Nothing;   //应急箱
                dic["PD_31"] = Nothing;   //限速功能或限速装置
                dic["PD_32"] = Nothing;   //防抱死制动装置
                dic["PD_33"] = Nothing;   //辅助制动装置
                dic["PD_34"] = Nothing;   //盘式制动器
                dic["PD_35"] = Nothing;   //紧急切断装置
                dic["PD_36"] = Nothing;   //发动机舱自动灭火装置
                dic["PD_37"] = Nothing;   //手动机械断电开关
                dic["PD_38"] = Nothing;   //副制动踏板
                dic["PD_39"] = Nothing;   //校车标志灯和校车停车指示标志牌
                dic["PD_40"] = Nothing;   //危险货物运输车标志
                dic["PD_41"] = Nothing;   //肢体残疾病人操纵辅助装置 
            }
            else if (IsMTC)//摩托车
            {
                dic["PD_7"] = Nothing;  //轴距
                dic["PD_11"] = Nothing;  //栏板高度
                dic["PD_12"] = Nothing;  //后轴钢板弹簧片数
                dic["PD_13"] = Nothing;  //客车应急出口
                dic["PD_14"] = Nothing;  //客车乘客通道和引道
                dic["PD_15"] = Nothing;  //货厢

                dic["PD_17"] = Nothing;  //外观标示、标志和标牌
                dic["PD_21"] = Nothing;  //加装、改装灯具
                dic["PD_22"] = Nothing;  //汽车安全带
                dic["PD_23"] = Nothing;  //机动车用三角警告牌
                dic["PD_24"] = Nothing;  //灭火器
                dic["PD_25"] = Nothing;  //行驶记录装置
                dic["PD_26"] = Nothing;  //车身反光标示
                dic["PD_27"] = Nothing;  //车辆尾部标示板
                dic["PD_28"] = Nothing;  //侧后防护装置
                dic["PD_29"] = Nothing;  //应急锤
                dic["PD_30"] = Nothing;  //应急箱
                dic["PD_31"] = Nothing;  //限速功能或限速装置
                dic["PD_32"] = Nothing;  //防抱死制动装置
                dic["PD_33"] = Nothing;  //辅助制动装置
                dic["PD_34"] = Nothing;  //盘式制动器
                dic["PD_35"] = Nothing;  //紧急切断装置
                dic["PD_36"] = Nothing;  //发动机舱自动灭火装置
                dic["PD_37"] = Nothing;  //手动机械断电开关
                dic["PD_38"] = Nothing;  //副制动踏板
                dic["PD_39"] = Nothing;  //校车标志灯和校车停车指示标志牌
                dic["PD_40"] = Nothing;  //危险货物运输车标志
                dic["PD_41"] = Nothing;  //肢体残疾病人操纵辅助装置 
                dic["PD_46"] = Nothing;  //转向系部件  
                dic["PD_47"] = Nothing;  //传动系部件  
                dic["PD_48"] = Nothing;  //行驶系部件  
                dic["PD_49"] = Nothing;  //制动系部件  
                dic["PD_50"] = Nothing;  //其他部件  

                //带驾驶室的正三轮摩托车  
                if (IsZSLMTC)
                {
                    if (Vehicle_Info.JYLBDH.Contains("02"))//汽车（三轮汽车除外）、挂车不超过±1%或±50mm
                    {
                        dic["PD_6"] = Nothing;    //外廓尺寸  o   
                    }

                    dic["PD_8"] = Nothing;    //整备质量 o
                    dic["PD_9"] = Nothing;    //额定载客人数 o
                }
            }

            return dic;
        }
    }
}
